pub struct GetMarginTradeResponse {
pub margin: Decimal,
}Expand description
Structure representing margin information
Fields§
§margin: DecimalCalculated margin in account currency
Implementations§
Source§impl GetMarginTradeResponse
impl GetMarginTradeResponse
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.
Trait Implementations§
Source§impl Clone for GetMarginTradeResponse
impl Clone for GetMarginTradeResponse
Source§fn clone(&self) -> GetMarginTradeResponse
fn clone(&self) -> GetMarginTradeResponse
Returns a copy 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 GetMarginTradeResponse
impl Debug for GetMarginTradeResponse
Source§impl Default for GetMarginTradeResponse
impl Default for GetMarginTradeResponse
Source§fn default() -> GetMarginTradeResponse
fn default() -> GetMarginTradeResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetMarginTradeResponse
impl<'de> Deserialize<'de> for GetMarginTradeResponse
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 GetMarginTradeResponse
impl PartialEq for GetMarginTradeResponse
Source§impl Serialize for GetMarginTradeResponse
impl Serialize for GetMarginTradeResponse
impl StructuralPartialEq for GetMarginTradeResponse
Auto Trait Implementations§
impl Freeze for GetMarginTradeResponse
impl RefUnwindSafe for GetMarginTradeResponse
impl Send for GetMarginTradeResponse
impl Sync for GetMarginTradeResponse
impl Unpin for GetMarginTradeResponse
impl UnwindSafe for GetMarginTradeResponse
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