pub struct AccountSnapshot {Show 13 fields
pub name: String,
pub index: u16,
pub capital: u128,
pub pnl: i128,
pub reserved_pnl: u128,
pub effective_position_q: i128,
pub effective_matured_pnl: u128,
pub equity_maint: i128,
pub equity_init: i128,
pub above_maintenance_margin: bool,
pub above_initial_margin: bool,
pub notional: u128,
pub fee_credits: i128,
}Expand description
Serializable snapshot of a single account’s state.
Fields§
§name: String§index: u16§capital: u128§pnl: i128§reserved_pnl: u128§effective_position_q: i128§effective_matured_pnl: u128§equity_maint: i128§equity_init: i128§above_maintenance_margin: bool§above_initial_margin: bool§notional: u128§fee_credits: i128Trait Implementations§
Source§impl Clone for AccountSnapshot
impl Clone for AccountSnapshot
Source§fn clone(&self) -> AccountSnapshot
fn clone(&self) -> AccountSnapshot
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 AccountSnapshot
impl Debug for AccountSnapshot
Source§impl<'de> Deserialize<'de> for AccountSnapshot
impl<'de> Deserialize<'de> for AccountSnapshot
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 AccountSnapshot
impl RefUnwindSafe for AccountSnapshot
impl Send for AccountSnapshot
impl Sync for AccountSnapshot
impl Unpin for AccountSnapshot
impl UnsafeUnpin for AccountSnapshot
impl UnwindSafe for AccountSnapshot
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