pub struct OrderQuery {
pub instrument: Instrument,
pub order_id: Option<String>,
pub client_order_id: Option<String>,
pub margin_coin: Option<String>,
}Fields§
§instrument: Instrument§order_id: Option<String>§client_order_id: Option<String>§margin_coin: Option<String>Implementations§
Source§impl OrderQuery
impl OrderQuery
pub fn new(instrument: Instrument) -> Self
pub fn by_order_id(instrument: Instrument, order_id: impl Into<String>) -> Self
pub fn by_client_order_id( instrument: Instrument, client_order_id: impl Into<String>, ) -> Self
pub fn with_order_id(self, value: impl Into<String>) -> Self
pub fn with_client_order_id(self, value: impl Into<String>) -> Self
pub fn with_margin_coin(self, value: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for OrderQuery
impl Clone for OrderQuery
Source§fn clone(&self) -> OrderQuery
fn clone(&self) -> OrderQuery
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 OrderQuery
impl Debug for OrderQuery
Source§impl<'de> Deserialize<'de> for OrderQuery
impl<'de> Deserialize<'de> for OrderQuery
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
Source§impl PartialEq for OrderQuery
impl PartialEq for OrderQuery
Source§impl Serialize for OrderQuery
impl Serialize for OrderQuery
impl Eq for OrderQuery
impl StructuralPartialEq for OrderQuery
Auto Trait Implementations§
impl Freeze for OrderQuery
impl RefUnwindSafe for OrderQuery
impl Send for OrderQuery
impl Sync for OrderQuery
impl Unpin for OrderQuery
impl UnsafeUnpin for OrderQuery
impl UnwindSafe for OrderQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.