Struct TradeQueryCommandSpec
pub struct TradeQueryCommandSpec {
pub operation: TradeQueryOperation,
pub real: TradeQueryRouteSpec,
pub sim: Option<TradeQueryRouteSpec>,
pub projection_domain: Option<ProjectionDomain>,
}Fields§
§operation: TradeQueryOperation§real: TradeQueryRouteSpec§sim: Option<TradeQueryRouteSpec>+ SimTrdCmdOffset 常量或 callback 存在不代表模拟账户支持该业务。
C++ NNProto_Trd_DealSimulate 的成交列表/详情/历史接口均直接返回 0,
因此这些 operation 必须保持 None,阻止 offset-only command 被执行。
projection_domain: Option<ProjectionDomain>Implementations§
§impl TradeQueryCommandSpec
impl TradeQueryCommandSpec
pub const fn route( &self, environment: TradeQueryEnvironment, ) -> Option<TradeQueryRouteSpec>
Trait Implementations§
§impl Clone for TradeQueryCommandSpec
impl Clone for TradeQueryCommandSpec
§fn clone(&self) -> TradeQueryCommandSpec
fn clone(&self) -> TradeQueryCommandSpec
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 TradeQueryCommandSpec
§impl Debug for TradeQueryCommandSpec
impl Debug for TradeQueryCommandSpec
impl Eq for TradeQueryCommandSpec
§impl PartialEq for TradeQueryCommandSpec
impl PartialEq for TradeQueryCommandSpec
§fn eq(&self, other: &TradeQueryCommandSpec) -> bool
fn eq(&self, other: &TradeQueryCommandSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TradeQueryCommandSpec
Auto Trait Implementations§
impl Freeze for TradeQueryCommandSpec
impl RefUnwindSafe for TradeQueryCommandSpec
impl Send for TradeQueryCommandSpec
impl Sync for TradeQueryCommandSpec
impl Unpin for TradeQueryCommandSpec
impl UnsafeUnpin for TradeQueryCommandSpec
impl UnwindSafe for TradeQueryCommandSpec
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more