pub struct FillLog {
pub fill_id: Option<String>,
pub order_id: Option<String>,
pub account_id: Option<u64>,
pub cid: Option<u64>,
pub create_time: Option<i64>,
pub side: Option<u32>,
pub coin: Option<String>,
pub currency: Option<String>,
pub last_qty: Option<String>,
pub last_px: Option<String>,
pub last_amount: Option<String>,
pub router_exchange: Option<u32>,
}Fields§
§fill_id: Option<String>成交ID(对应DB的exec_id)
order_id: Option<String>内部订单ID
account_id: Option<u64>订单账户ID
cid: Option<u64>custome_id
create_time: Option<i64>发生时间戳,微妙
side: Option<u32>详见公共协议cryptotrade_cmn的Side
coin: Option<String>交易对的基础资产,如BTC、ETH
currency: Option<String>交易对的计价资产,如USD,SGD
last_qty: Option<String>本次成交数量
last_px: Option<String>本次成交价格
last_amount: Option<String>本次成交金额
router_exchange: Option<u32>详见公共协议cryptotrade_cmn的RouterExchange
Implementations§
Source§impl FillLog
impl FillLog
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 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 account_id(&self) -> u64
pub fn account_id(&self) -> u64
Returns the value of account_id, or the default value if account_id is unset.
Sourcepub fn create_time(&self) -> i64
pub fn create_time(&self) -> i64
Returns the value of create_time, or the default value if create_time is unset.
Sourcepub fn currency(&self) -> &str
pub fn currency(&self) -> &str
Returns the value of currency, or the default value if currency is unset.
Sourcepub fn last_qty(&self) -> &str
pub fn last_qty(&self) -> &str
Returns the value of last_qty, or the default value if last_qty is unset.
Sourcepub fn last_px(&self) -> &str
pub fn last_px(&self) -> &str
Returns the value of last_px, or the default value if last_px is unset.
Sourcepub fn last_amount(&self) -> &str
pub fn last_amount(&self) -> &str
Returns the value of last_amount, or the default value if last_amount is unset.
Sourcepub fn router_exchange(&self) -> u32
pub fn router_exchange(&self) -> u32
Returns the value of router_exchange, or the default value if router_exchange is unset.
Trait Implementations§
Source§impl Message for FillLog
impl Message for FillLog
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.impl Eq for FillLog
impl StructuralPartialEq for FillLog
Auto Trait Implementations§
impl Freeze for FillLog
impl RefUnwindSafe for FillLog
impl Send for FillLog
impl Sync for FillLog
impl Unpin for FillLog
impl UnsafeUnpin for FillLog
impl UnwindSafe for FillLog
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.