Struct SubscribeOptionsPlan
pub struct SubscribeOptionsPlan {
pub requested_session: i32,
pub backend_session: i32,
pub extended_time: bool,
pub orderbook_detail: bool,
}Fields§
§requested_session: i32§backend_session: i32§extended_time: bool§orderbook_detail: boolImplementations§
§impl SubscribeOptionsPlan
impl SubscribeOptionsPlan
pub fn from_raw(
requested_session: Option<i32>,
extended_time: Option<bool>,
orderbook_detail: Option<bool>,
) -> Result<SubscribeOptionsPlan, SubscribePlanError>
pub fn from_raw( requested_session: Option<i32>, extended_time: Option<bool>, orderbook_detail: Option<bool>, ) -> Result<SubscribeOptionsPlan, SubscribePlanError>
Normalize Qot_Sub option fields.
C++ APIServer_Qot_Sub.cpp:194-200 rejects Session_OVERNIGHT.
C++ ToSession(bExtendedTime, Session_NONE) maps omitted session to
ETH when extended_time=true, otherwise RTH.
Trait Implementations§
§impl Clone for SubscribeOptionsPlan
impl Clone for SubscribeOptionsPlan
§fn clone(&self) -> SubscribeOptionsPlan
fn clone(&self) -> SubscribeOptionsPlan
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 moreimpl Copy for SubscribeOptionsPlan
§impl Debug for SubscribeOptionsPlan
impl Debug for SubscribeOptionsPlan
impl Eq for SubscribeOptionsPlan
§impl PartialEq for SubscribeOptionsPlan
impl PartialEq for SubscribeOptionsPlan
§fn eq(&self, other: &SubscribeOptionsPlan) -> bool
fn eq(&self, other: &SubscribeOptionsPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubscribeOptionsPlan
Auto Trait Implementations§
impl Freeze for SubscribeOptionsPlan
impl RefUnwindSafe for SubscribeOptionsPlan
impl Send for SubscribeOptionsPlan
impl Sync for SubscribeOptionsPlan
impl Unpin for SubscribeOptionsPlan
impl UnsafeUnpin for SubscribeOptionsPlan
impl UnwindSafe for SubscribeOptionsPlan
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