Struct OrderAccount
pub struct OrderAccount {
pub balance: Balance,
pub average_buy_price: Decimal,
pub average_buy_price_modified: bool,
pub average_buy_price_unit: Option<String>,
}Expand description
Account values returned with dynamic order rules.
Fields§
§balance: BalanceAvailable and locked amounts for the account asset.
average_buy_price: DecimalAverage buy price reported by the exchange.
average_buy_price_modified: boolWhether the exchange says the average buy price was modified.
average_buy_price_unit: Option<String>Currency used for the average buy price, when published.
Trait Implementations§
§impl Clone for OrderAccount
impl Clone for OrderAccount
§impl Debug for OrderAccount
impl Debug for OrderAccount
impl Eq for OrderAccount
§impl PartialEq for OrderAccount
impl PartialEq for OrderAccount
impl StructuralPartialEq for OrderAccount
Auto Trait Implementations§
impl Freeze for OrderAccount
impl RefUnwindSafe for OrderAccount
impl Send for OrderAccount
impl Sync for OrderAccount
impl Unpin for OrderAccount
impl UnsafeUnpin for OrderAccount
impl UnwindSafe for OrderAccount
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.