pub struct GetMarginLevelResponse {
pub balance: Decimal,
pub credit: Decimal,
pub currency: String,
pub equity: Decimal,
pub margin: Decimal,
pub margin_free: Decimal,
pub margin_level: Decimal,
}
Expand description
Structure representing account financial information
Fields§
§balance: Decimal
Balance in account currency
credit: Decimal
credit
currency: String
User currency
equity: Decimal
Sum of balance and all profits in account currency
margin: Decimal
Margin requirements in account currency
margin_free: Decimal
Free margin in account currency
margin_level: Decimal
Margin level percentage
Implementations§
Source§impl GetMarginLevelResponse
impl GetMarginLevelResponse
Sourcepub fn with_balance(self, value: impl Into<Decimal>) -> Self
pub fn with_balance(self, value: impl Into<Decimal>) -> Self
Sets the balance
field of this struct.
Sourcepub fn with_credit(self, value: impl Into<Decimal>) -> Self
pub fn with_credit(self, value: impl Into<Decimal>) -> Self
Sets the credit
field of this struct.
Sourcepub fn with_currency(self, value: impl Into<String>) -> Self
pub fn with_currency(self, value: impl Into<String>) -> Self
Sets the currency
field of this struct.
Sourcepub fn with_equity(self, value: impl Into<Decimal>) -> Self
pub fn with_equity(self, value: impl Into<Decimal>) -> Self
Sets the equity
field of this struct.
Sourcepub fn with_margin(self, value: impl Into<Decimal>) -> Self
pub fn with_margin(self, value: impl Into<Decimal>) -> Self
Sets the margin
field of this struct.
Sourcepub fn with_margin_free(self, value: impl Into<Decimal>) -> Self
pub fn with_margin_free(self, value: impl Into<Decimal>) -> Self
Sets the margin_free
field of this struct.
Sourcepub fn with_margin_level(self, value: impl Into<Decimal>) -> Self
pub fn with_margin_level(self, value: impl Into<Decimal>) -> Self
Sets the margin_level
field of this struct.
Trait Implementations§
Source§impl Clone for GetMarginLevelResponse
impl Clone for GetMarginLevelResponse
Source§fn clone(&self) -> GetMarginLevelResponse
fn clone(&self) -> GetMarginLevelResponse
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 GetMarginLevelResponse
impl Debug for GetMarginLevelResponse
Source§impl Default for GetMarginLevelResponse
impl Default for GetMarginLevelResponse
Source§fn default() -> GetMarginLevelResponse
fn default() -> GetMarginLevelResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetMarginLevelResponse
impl<'de> Deserialize<'de> for GetMarginLevelResponse
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
Source§impl PartialEq for GetMarginLevelResponse
impl PartialEq for GetMarginLevelResponse
Source§impl Serialize for GetMarginLevelResponse
impl Serialize for GetMarginLevelResponse
impl StructuralPartialEq for GetMarginLevelResponse
Auto Trait Implementations§
impl Freeze for GetMarginLevelResponse
impl RefUnwindSafe for GetMarginLevelResponse
impl Send for GetMarginLevelResponse
impl Sync for GetMarginLevelResponse
impl Unpin for GetMarginLevelResponse
impl UnwindSafe for GetMarginLevelResponse
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