#[non_exhaustive]pub struct Balance {
pub asset: String,
pub total: Option<Decimal>,
pub available: Option<Decimal>,
pub extensions: Extensions,
}Expand description
What the account holds of one asset.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.asset: StringThe asset, as the venue names it.
total: Option<Decimal>The whole balance.
available: Option<Decimal>What is free to trade.
extensions: ExtensionsThe venue’s own facts.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Balance
Auto Trait Implementations§
impl !RefUnwindSafe for Balance
impl !UnwindSafe for Balance
impl Freeze for Balance
impl Send for Balance
impl Sync for Balance
impl Unpin for Balance
impl UnsafeUnpin for Balance
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