pub struct SetMarginModeRequest {
pub set_margin_mode: MarginMode,
}Expand description
Request body for Client::set_margin_mode.
Fields§
§set_margin_mode: MarginModeISOLATED_MARGIN, REGULAR_MARGIN (i.e. Cross margin), PORTFOLIO_MARGIN.
Implementations§
Source§impl SetMarginModeRequest
impl SetMarginModeRequest
Sourcepub fn new(set_margin_mode: MarginMode) -> Self
pub fn new(set_margin_mode: MarginMode) -> Self
Create with the required fields; set the optional ones with the with_* methods.
Trait Implementations§
Source§impl Clone for SetMarginModeRequest
impl Clone for SetMarginModeRequest
Source§impl Debug for SetMarginModeRequest
impl Debug for SetMarginModeRequest
Auto Trait Implementations§
impl Freeze for SetMarginModeRequest
impl RefUnwindSafe for SetMarginModeRequest
impl Send for SetMarginModeRequest
impl Sync for SetMarginModeRequest
impl Unpin for SetMarginModeRequest
impl UnsafeUnpin for SetMarginModeRequest
impl UnwindSafe for SetMarginModeRequest
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