pub struct MaxAvailableSizeRequest { /* private fields */ }Expand description
Query parameters for maximum available size.
Implementations§
Source§impl MaxAvailableSizeRequest
impl MaxAvailableSizeRequest
Sourcepub fn new(inst_id: impl Into<String>, td_mode: TradeMode) -> Self
pub fn new(inst_id: impl Into<String>, td_mode: TradeMode) -> Self
Create a maximum-available-size query.
Sourcepub fn reduce_only(self, reduce_only: bool) -> Self
pub fn reduce_only(self, reduce_only: bool) -> Self
Set the reduce-only filter.
Sourcepub fn un_spot_offset(self, un_spot_offset: bool) -> Self
pub fn un_spot_offset(self, un_spot_offset: bool) -> Self
Set the spot offset flag.
Sourcepub fn quick_margin_type(self, quick_mgn_type: impl Into<String>) -> Self
pub fn quick_margin_type(self, quick_mgn_type: impl Into<String>) -> Self
Set the quick margin type.
Sourcepub fn trade_quote_currency(self, trade_quote_ccy: impl Into<String>) -> Self
pub fn trade_quote_currency(self, trade_quote_ccy: impl Into<String>) -> Self
Set the trade quote currency.
Trait Implementations§
Source§impl Clone for MaxAvailableSizeRequest
impl Clone for MaxAvailableSizeRequest
Source§fn clone(&self) -> MaxAvailableSizeRequest
fn clone(&self) -> MaxAvailableSizeRequest
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 MaxAvailableSizeRequest
impl Debug for MaxAvailableSizeRequest
Source§impl Serialize for MaxAvailableSizeRequest
impl Serialize for MaxAvailableSizeRequest
Auto Trait Implementations§
impl Freeze for MaxAvailableSizeRequest
impl RefUnwindSafe for MaxAvailableSizeRequest
impl Send for MaxAvailableSizeRequest
impl Sync for MaxAvailableSizeRequest
impl Unpin for MaxAvailableSizeRequest
impl UnsafeUnpin for MaxAvailableSizeRequest
impl UnwindSafe for MaxAvailableSizeRequest
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