Struct bitpanda_csv::Trade
source · [−]pub struct Trade { /* private fields */ }Expand description
Defines a single Trade made on Bitpanda exchange
Implementations
sourceimpl Trade
impl Trade
pub fn transaction_id(&self) -> &str
pub fn timestamp(&self) -> DateTime<FixedOffset>
pub fn transaction_type(&self) -> TransactionType
pub fn in_out(&self) -> InOut
pub fn amount_fiat(&self) -> Decimal
pub fn fiat(&self) -> Fiat
pub fn amount_asset(&self) -> Option<Decimal>
pub fn asset(&self) -> Asset
pub fn asset_market_price(&self) -> Option<Decimal>
pub fn asset_market_price_currency(&self) -> Option<Fiat>
pub fn asset_class(&self) -> AssetClass
pub fn product_id(&self) -> Option<u64>
pub fn fee(&self) -> Option<Decimal>
pub fn fee_asset(&self) -> Option<Currency>
pub fn spread(&self) -> Option<Decimal>
pub fn spread_currency(&self) -> Option<Fiat>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Trade
impl<'de> Deserialize<'de> for Trade
sourcefn 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 StructuralEq for Trade
impl StructuralPartialEq for Trade
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more