pub struct SimulatedMarginRequest { /* private fields */ }Expand description
Request body for simulated margin calculation.
Implementations§
Source§impl SimulatedMarginRequest
impl SimulatedMarginRequest
Sourcepub fn include_real_positions(self, include_real_positions: bool) -> Self
pub fn include_real_positions(self, include_real_positions: bool) -> Self
Set whether real positions and equity are included.
Sourcepub fn spot_offset_type(self, spot_offset_type: impl Into<String>) -> Self
pub fn spot_offset_type(self, spot_offset_type: impl Into<String>) -> Self
Set the spot offset type.
Sourcepub fn simulated_positions(
self,
simulated_positions: Vec<SimulatedPosition>,
) -> Self
pub fn simulated_positions( self, simulated_positions: Vec<SimulatedPosition>, ) -> Self
Set simulated positions.
Trait Implementations§
Source§impl Clone for SimulatedMarginRequest
impl Clone for SimulatedMarginRequest
Source§fn clone(&self) -> SimulatedMarginRequest
fn clone(&self) -> SimulatedMarginRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SimulatedMarginRequest
impl Debug for SimulatedMarginRequest
Source§impl Default for SimulatedMarginRequest
impl Default for SimulatedMarginRequest
Source§fn default() -> SimulatedMarginRequest
fn default() -> SimulatedMarginRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimulatedMarginRequest
impl RefUnwindSafe for SimulatedMarginRequest
impl Send for SimulatedMarginRequest
impl Sync for SimulatedMarginRequest
impl Unpin for SimulatedMarginRequest
impl UnsafeUnpin for SimulatedMarginRequest
impl UnwindSafe for SimulatedMarginRequest
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