pub struct Trade {Show 14 fields
pub amount_asset: Decimal,
pub amount_fiat: Decimal,
pub datetime: DateTime<FixedOffset>,
pub fiat_to_eur_rate: Decimal,
pub fiat_wallet_id: Option<String>,
pub id_asset: String,
pub id_fiat: String,
pub id_wallet: String,
pub id: String,
pub price: Decimal,
pub related_swap_trade: Option<Box<Trade>>,
pub status: TradeStatus,
pub symbol: String,
pub type: TradeType,
}
Expand description
A trade on the Bitpanda exchange
Fields§
§amount_asset: Decimal
§amount_fiat: Decimal
§datetime: DateTime<FixedOffset>
§fiat_to_eur_rate: Decimal
§fiat_wallet_id: Option<String>
§id_asset: String
§id_fiat: String
§id_wallet: String
§id: String
§price: Decimal
The Swap trade related to this
status: TradeStatus
§symbol: String
§type: TradeType
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trade
impl<'de> Deserialize<'de> for Trade
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Trade
impl StructuralPartialEq for Trade
Auto Trait Implementations§
impl Freeze for Trade
impl RefUnwindSafe for Trade
impl Send for Trade
impl Sync for Trade
impl Unpin for Trade
impl UnwindSafe for Trade
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,
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.