pub struct MaxOrderQuery { /* private fields */ }Expand description
Payload for querying maximum order amount
Implementations§
Source§impl MaxOrderQuery
impl MaxOrderQuery
pub fn new<S: Into<String>>(symbol: S, side: Side) -> Self
pub fn with_price(self, price: Decimal) -> Self
pub fn with_reduce_only(self, reduce_only: bool) -> Self
pub fn with_auto_borrow(self, auto_borrow: bool) -> Self
pub fn with_auto_borrow_repay(self, auto_borrow_repay: bool) -> Self
pub fn with_auto_lend_redeem(self, auto_lend_redeem: bool) -> Self
Trait Implementations§
Source§impl Clone for MaxOrderQuery
impl Clone for MaxOrderQuery
Source§fn clone(&self) -> MaxOrderQuery
fn clone(&self) -> MaxOrderQuery
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 MaxOrderQuery
impl Debug for MaxOrderQuery
Source§impl<'de> Deserialize<'de> for MaxOrderQuery
impl<'de> Deserialize<'de> for MaxOrderQuery
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 MaxOrderQuery
impl RefUnwindSafe for MaxOrderQuery
impl Send for MaxOrderQuery
impl Sync for MaxOrderQuery
impl Unpin for MaxOrderQuery
impl UnwindSafe for MaxOrderQuery
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