pub struct BitmexMargin {Show 41 fields
pub account: i64,
pub currency: Ustr,
pub risk_limit: Option<i64>,
pub prev_state: Option<String>,
pub state: Option<String>,
pub action: Option<String>,
pub amount: Option<i64>,
pub pending_credit: Option<i64>,
pub pending_debit: Option<i64>,
pub confirmed_debit: Option<i64>,
pub prev_realised_pnl: Option<i64>,
pub prev_unrealised_pnl: Option<i64>,
pub gross_comm: Option<i64>,
pub gross_open_cost: Option<i64>,
pub gross_open_premium: Option<i64>,
pub gross_exec_cost: Option<i64>,
pub gross_mark_value: Option<i64>,
pub risk_value: Option<i64>,
pub taxable_margin: Option<i64>,
pub init_margin: Option<i64>,
pub maint_margin: Option<i64>,
pub session_margin: Option<i64>,
pub target_excess_margin: Option<i64>,
pub var_margin: Option<i64>,
pub realised_pnl: Option<i64>,
pub unrealised_pnl: Option<i64>,
pub indicative_tax: Option<i64>,
pub unrealised_profit: Option<i64>,
pub synthetic_margin: Option<i64>,
pub wallet_balance: Option<i64>,
pub margin_balance: Option<i64>,
pub margin_balance_pcnt: Option<f64>,
pub margin_leverage: Option<f64>,
pub margin_used_pcnt: Option<f64>,
pub excess_margin: Option<i64>,
pub excess_margin_pcnt: Option<f64>,
pub available_margin: Option<i64>,
pub withdrawable_margin: Option<i64>,
pub timestamp: Option<DateTime<Utc>>,
pub gross_last_value: Option<i64>,
pub commission: Option<f64>,
}
Fields§
§account: i64
§currency: Ustr
§risk_limit: Option<i64>
§prev_state: Option<String>
§state: Option<String>
§action: Option<String>
§amount: Option<i64>
§pending_credit: Option<i64>
§pending_debit: Option<i64>
§confirmed_debit: Option<i64>
§prev_realised_pnl: Option<i64>
§prev_unrealised_pnl: Option<i64>
§gross_comm: Option<i64>
§gross_open_cost: Option<i64>
§gross_exec_cost: Option<i64>
§gross_mark_value: Option<i64>
§risk_value: Option<i64>
§taxable_margin: Option<i64>
§init_margin: Option<i64>
§maint_margin: Option<i64>
§session_margin: Option<i64>
§target_excess_margin: Option<i64>
§var_margin: Option<i64>
§realised_pnl: Option<i64>
§unrealised_pnl: Option<i64>
§indicative_tax: Option<i64>
§unrealised_profit: Option<i64>
§synthetic_margin: Option<i64>
§wallet_balance: Option<i64>
§margin_balance: Option<i64>
§margin_balance_pcnt: Option<f64>
§margin_leverage: Option<f64>
§margin_used_pcnt: Option<f64>
§excess_margin: Option<i64>
§excess_margin_pcnt: Option<f64>
§available_margin: Option<i64>
§withdrawable_margin: Option<i64>
§timestamp: Option<DateTime<Utc>>
§gross_last_value: Option<i64>
§commission: Option<f64>
Trait Implementations§
Source§impl Clone for BitmexMargin
impl Clone for BitmexMargin
Source§fn clone(&self) -> BitmexMargin
fn clone(&self) -> BitmexMargin
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 BitmexMargin
impl Debug for BitmexMargin
Source§impl<'de> Deserialize<'de> for BitmexMargin
impl<'de> Deserialize<'de> for BitmexMargin
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 BitmexMargin
impl RefUnwindSafe for BitmexMargin
impl Send for BitmexMargin
impl Sync for BitmexMargin
impl Unpin for BitmexMargin
impl UnwindSafe for BitmexMargin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more