pub struct SecurityWithOpts {
pub stock_id: u64,
pub ftapi_market: i32,
pub sub_types_with_opts: Vec<(i32, SubBitOptions)>,
pub broker_id: Option<NonZeroU32>,
}Fields§
§stock_id: u64§ftapi_market: i32§sub_types_with_opts: Vec<(i32, SubBitOptions)>§broker_id: Option<NonZeroU32>Implementations§
Source§impl SecurityWithOpts
impl SecurityWithOpts
pub fn new( stock_id: u64, ftapi_market: i32, sub_types_with_opts: Vec<(i32, SubBitOptions)>, ) -> Self
pub fn with_broker( stock_id: u64, ftapi_market: i32, sub_types_with_opts: Vec<(i32, SubBitOptions)>, broker_id: u32, ) -> Self
Trait Implementations§
Source§impl Clone for SecurityWithOpts
impl Clone for SecurityWithOpts
Source§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 moreSource§impl Debug for SecurityWithOpts
impl Debug for SecurityWithOpts
impl Eq for SecurityWithOpts
Source§impl PartialEq for SecurityWithOpts
impl PartialEq for SecurityWithOpts
Source§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
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.