Struct SecurityWithOpts
pub struct SecurityWithOpts {
pub stock_id: u64,
pub ftapi_market: i32,
pub sub_types_with_opts: Vec<(i32, SubBitOptions)>,
pub broker_id: Option<NonZero<u32>>,
}Fields§
§stock_id: u64§ftapi_market: i32§sub_types_with_opts: Vec<(i32, SubBitOptions)>§broker_id: Option<NonZero<u32>>Implementations§
§impl SecurityWithOpts
impl SecurityWithOpts
pub fn new( stock_id: u64, ftapi_market: i32, sub_types_with_opts: Vec<(i32, SubBitOptions)>, ) -> SecurityWithOpts
pub fn with_broker( stock_id: u64, ftapi_market: i32, sub_types_with_opts: Vec<(i32, SubBitOptions)>, broker_id: u32, ) -> SecurityWithOpts
Trait Implementations§
§impl Clone for SecurityWithOpts
impl Clone for SecurityWithOpts
§fn clone(&self) -> SecurityWithOpts
fn clone(&self) -> SecurityWithOpts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for SecurityWithOpts
impl Debug for SecurityWithOpts
impl Eq for SecurityWithOpts
§impl PartialEq for SecurityWithOpts
impl PartialEq for SecurityWithOpts
§fn eq(&self, other: &SecurityWithOpts) -> bool
fn eq(&self, other: &SecurityWithOpts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecurityWithOpts
Auto Trait Implementations§
impl Freeze for SecurityWithOpts
impl RefUnwindSafe for SecurityWithOpts
impl Send for SecurityWithOpts
impl Sync for SecurityWithOpts
impl Unpin for SecurityWithOpts
impl UnsafeUnpin for SecurityWithOpts
impl UnwindSafe for SecurityWithOpts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more