pub struct MarginLevel {
pub contracts: Decimal,
pub initial_margin: Decimal,
pub maintenance_margin: Decimal,
}Expand description
Margin level tier.
Fields§
§contracts: DecimalNumber of contracts
initial_margin: DecimalInitial margin percentage
maintenance_margin: DecimalMaintenance margin percentage
Trait Implementations§
Source§impl Clone for MarginLevel
impl Clone for MarginLevel
Source§fn clone(&self) -> MarginLevel
fn clone(&self) -> MarginLevel
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 MarginLevel
impl Debug for MarginLevel
Source§impl<'de> Deserialize<'de> for MarginLevel
impl<'de> Deserialize<'de> for MarginLevel
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 MarginLevel
impl RefUnwindSafe for MarginLevel
impl Send for MarginLevel
impl Sync for MarginLevel
impl Unpin for MarginLevel
impl UnwindSafe for MarginLevel
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