pub struct CryptoExchangeInfo {
pub lv2_prob: i32,
pub exchange_name: String,
pub listed_exchange: String,
pub is_pick: bool,
}Expand description
Daemon-side snapshot of one entry in CMD18012 ExchangeInfo.
对齐 C++ Ndt_Qot_CryptoExchangeInfo (NNBiz_Qot_CryptoExchange.cpp:55-58).
在 cache crate 单独定义 (而非引用 futu-backend) 是为了避免 futu-cache → futu-backend 反向依赖 (C++ 也分 NNData / NNBiz / APIServer 三层, 类似关注点分离).
Fields§
§lv2_prob: i32订阅位 prob — USLV2OrderSubProb.us_lv2_order_type.
exchange_name: String交易所内部 name (e.g. “BINANCE”, “OKX”, “PT”).
listed_exchange: String上市交易所标识 (FTAPI listed_exchange 字段).
is_pick: bool是否默认选中 (UI 显示用, daemon 一般不消费).
Trait Implementations§
Source§impl Clone for CryptoExchangeInfo
impl Clone for CryptoExchangeInfo
Source§fn clone(&self) -> CryptoExchangeInfo
fn clone(&self) -> CryptoExchangeInfo
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 CryptoExchangeInfo
impl Debug for CryptoExchangeInfo
Source§impl PartialEq for CryptoExchangeInfo
impl PartialEq for CryptoExchangeInfo
Source§fn eq(&self, other: &CryptoExchangeInfo) -> bool
fn eq(&self, other: &CryptoExchangeInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CryptoExchangeInfo
Auto Trait Implementations§
impl Freeze for CryptoExchangeInfo
impl RefUnwindSafe for CryptoExchangeInfo
impl Send for CryptoExchangeInfo
impl Sync for CryptoExchangeInfo
impl Unpin for CryptoExchangeInfo
impl UnsafeUnpin for CryptoExchangeInfo
impl UnwindSafe for CryptoExchangeInfo
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<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