pub struct CryptoPairInfo {
pub cc_origin: String,
pub cc_destination: String,
}Expand description
Crypto 交易币对元数据。
C++ NNProto_Trd_MaxQtyCrypto.cpp 通过 INNBiz_Qot_SecList::SearchSecByID
读取 Ndt_Qot_SecInfo::szCCOrigin/szCCDestination,并把它们分别写入
backend GetMaxBuySellReq.coin/currency。Rust 从 stock-list field 60/61
接入同一份数据,避免在交易路径按 symbol 字符串拆币种。
Fields§
§cc_origin: String§cc_destination: StringTrait Implementations§
Source§impl Clone for CryptoPairInfo
impl Clone for CryptoPairInfo
Source§fn clone(&self) -> CryptoPairInfo
fn clone(&self) -> CryptoPairInfo
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 CryptoPairInfo
impl Debug for CryptoPairInfo
Source§impl Default for CryptoPairInfo
impl Default for CryptoPairInfo
Source§fn default() -> CryptoPairInfo
fn default() -> CryptoPairInfo
Returns the “default value” for a type. Read more
impl Eq for CryptoPairInfo
Source§impl PartialEq for CryptoPairInfo
impl PartialEq for CryptoPairInfo
Source§fn eq(&self, other: &CryptoPairInfo) -> bool
fn eq(&self, other: &CryptoPairInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CryptoPairInfo
Auto Trait Implementations§
impl Freeze for CryptoPairInfo
impl RefUnwindSafe for CryptoPairInfo
impl Send for CryptoPairInfo
impl Sync for CryptoPairInfo
impl Unpin for CryptoPairInfo
impl UnsafeUnpin for CryptoPairInfo
impl UnwindSafe for CryptoPairInfo
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
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<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