[][src]Struct nash_protocol::types::exchange::Trade

pub struct Trade {
    pub id: String,
    pub taker_order_id: String,
    pub maker_order_id: String,
    pub amount: AssetAmount,
    pub executed_at: DateTime<Utc>,
    pub account_side: AccountTradeSide,
    pub maker_fee: AssetAmount,
    pub taker_fee: AssetAmount,
    pub maker_recieved: AssetAmount,
    pub taker_recieved: AssetAmount,
    pub market: Market,
    pub direction: BuyOrSell,
    pub limit_price: AssetAmount,
}

Fields

id: Stringtaker_order_id: Stringmaker_order_id: Stringamount: AssetAmountexecuted_at: DateTime<Utc>account_side: AccountTradeSidemaker_fee: AssetAmounttaker_fee: AssetAmountmaker_recieved: AssetAmounttaker_recieved: AssetAmountmarket: Marketdirection: BuyOrSelllimit_price: AssetAmount

Trait Implementations

impl Clone for Trade[src]

impl Debug for Trade[src]

Auto Trait Implementations

impl RefUnwindSafe for Trade

impl Send for Trade

impl Sync for Trade

impl Unpin for Trade

impl UnwindSafe for Trade

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.