pub struct CryptoFill {
pub order_id: Option<String>,
pub fill_id: Option<String>,
pub symbol_pair: Option<SymbolPair>,
pub exchange: Option<String>,
pub side: Option<u32>,
pub quantity: Option<String>,
pub price: Option<String>,
pub amount: Option<String>,
pub fill_time: Option<i64>,
pub market: Option<u32>,
pub security_type: Option<u32>,
}Fields§
§order_id: Option<String>订单id
fill_id: Option<String>成交id
symbol_pair: Option<SymbolPair>交易对信息
exchange: Option<String>交易所
side: Option<u32>详见公共协议cryptotrade_cmn的Side
quantity: Option<String>本次次成交数量
price: Option<String>本次成交价格
amount: Option<String>本次总成交金额
fill_time: Option<i64>成交时间
market: Option<u32>详见公共协议cryptotrade_cmn的StockMarket
security_type: Option<u32>详见公共协议cryptotrade_cmn的SecurityType
Implementations§
Source§impl CryptoFill
impl CryptoFill
Sourcepub fn order_id(&self) -> &str
pub fn order_id(&self) -> &str
Returns the value of order_id, or the default value if order_id is unset.
Sourcepub fn fill_id(&self) -> &str
pub fn fill_id(&self) -> &str
Returns the value of fill_id, or the default value if fill_id is unset.
Sourcepub fn exchange(&self) -> &str
pub fn exchange(&self) -> &str
Returns the value of exchange, or the default value if exchange is unset.
Sourcepub fn quantity(&self) -> &str
pub fn quantity(&self) -> &str
Returns the value of quantity, or the default value if quantity is unset.
Sourcepub fn price(&self) -> &str
pub fn price(&self) -> &str
Returns the value of price, or the default value if price is unset.
Sourcepub fn amount(&self) -> &str
pub fn amount(&self) -> &str
Returns the value of amount, or the default value if amount is unset.
Sourcepub fn fill_time(&self) -> i64
pub fn fill_time(&self) -> i64
Returns the value of fill_time, or the default value if fill_time is unset.
Sourcepub fn market(&self) -> u32
pub fn market(&self) -> u32
Returns the value of market, or the default value if market is unset.
Sourcepub fn security_type(&self) -> u32
pub fn security_type(&self) -> u32
Returns the value of security_type, or the default value if security_type is unset.
Trait Implementations§
Source§impl Clone for CryptoFill
impl Clone for CryptoFill
Source§fn clone(&self) -> CryptoFill
fn clone(&self) -> CryptoFill
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CryptoFill
impl Debug for CryptoFill
Source§impl Default for CryptoFill
impl Default for CryptoFill
Source§impl Hash for CryptoFill
impl Hash for CryptoFill
Source§impl Message for CryptoFill
impl Message for CryptoFill
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for CryptoFill
impl PartialEq for CryptoFill
impl Eq for CryptoFill
impl StructuralPartialEq for CryptoFill
Auto Trait Implementations§
impl Freeze for CryptoFill
impl RefUnwindSafe for CryptoFill
impl Send for CryptoFill
impl Sync for CryptoFill
impl Unpin for CryptoFill
impl UnsafeUnpin for CryptoFill
impl UnwindSafe for CryptoFill
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
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
§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
§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
key and return true if they are equal.