pub struct UserTrade {
pub symbol_id: u32,
pub match_id: String,
pub order_id: String,
pub side: String,
pub is_maker: bool,
pub price: Option<Price>,
pub qty: Option<Quantity>,
pub fee_amount_e18: String,
pub fee_asset: String,
pub referral_share_amount_e18: String,
pub ts_ns: String,
pub fee_is_rebate: bool,
}Fields§
§symbol_id: u32§match_id: String§order_id: String§side: String§is_maker: bool§price: Option<Price>§qty: Option<Quantity>§fee_amount_e18: StringExact fee magnitude in fixed 18-decimal units of fee_asset.
fee_asset: StringAsset used to pay/credit the fee: quote, base, or an
UNKNOWN(<number>) forward-compatible enum value.
Exact referral share magnitude in fixed 18-decimal units of fee_asset.
ts_ns: String§fee_is_rebate: boolTrue when fee_amount_e18 is a rebate credit instead of a fee debit.
Proto3 omits false, so sparse wire encoding only sets this for rebates.
Trait Implementations§
impl Eq for UserTrade
impl StructuralPartialEq for UserTrade
Auto Trait Implementations§
impl Freeze for UserTrade
impl RefUnwindSafe for UserTrade
impl Send for UserTrade
impl Sync for UserTrade
impl Unpin for UserTrade
impl UnsafeUnpin for UserTrade
impl UnwindSafe for UserTrade
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.