pub struct BalancesMessage {
pub feed: String,
pub account: Option<String>,
pub seq: Option<u64>,
pub balance: Option<Decimal>,
pub available: Option<Decimal>,
pub margin: Option<Decimal>,
pub pnl: Option<Decimal>,
pub flex_futures: Option<FlexFuturesBalance>,
}Expand description
Balances message.
Fields§
§feed: StringFeed name.
account: Option<String>Account type.
seq: Option<u64>Sequence number.
balance: Option<Decimal>Total balance.
available: Option<Decimal>Available balance.
margin: Option<Decimal>Margin used.
pnl: Option<Decimal>PnL.
flex_futures: Option<FlexFuturesBalance>Collateral balances (for flex/multi-collateral accounts).
Trait Implementations§
Source§impl Clone for BalancesMessage
impl Clone for BalancesMessage
Source§fn clone(&self) -> BalancesMessage
fn clone(&self) -> BalancesMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BalancesMessage
impl Debug for BalancesMessage
Source§impl<'de> Deserialize<'de> for BalancesMessage
impl<'de> Deserialize<'de> for BalancesMessage
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
Auto Trait Implementations§
impl Freeze for BalancesMessage
impl RefUnwindSafe for BalancesMessage
impl Send for BalancesMessage
impl Sync for BalancesMessage
impl Unpin for BalancesMessage
impl UnwindSafe for BalancesMessage
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