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