Struct OrderLookupRequest
pub struct OrderLookupRequest {
pub kind: OrderIdKind,
pub ids: Vec<String>,
pub market: Option<Market>,
}Expand description
Looks up up to 100 orders by one identifier namespace.
Fields§
§kind: OrderIdKindExchange-assigned or caller-assigned identifiers.
ids: Vec<String>One to 100 identifiers. Missing orders may be omitted by the provider.
market: Option<Market>Optional market filter.
Implementations§
§impl OrderLookupRequest
impl OrderLookupRequest
pub fn exchange(ids: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn exchange(ids: impl IntoIterator<Item = impl Into<String>>) -> Self
Looks up exchange-assigned order identifiers.
pub fn client(ids: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn client(ids: impl IntoIterator<Item = impl Into<String>>) -> Self
Looks up caller-assigned order identifiers.
Trait Implementations§
§impl Clone for OrderLookupRequest
impl Clone for OrderLookupRequest
§fn clone(&self) -> OrderLookupRequest
fn clone(&self) -> OrderLookupRequest
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 more§impl Debug for OrderLookupRequest
impl Debug for OrderLookupRequest
impl Eq for OrderLookupRequest
§impl PartialEq for OrderLookupRequest
impl PartialEq for OrderLookupRequest
impl StructuralPartialEq for OrderLookupRequest
Auto Trait Implementations§
impl Freeze for OrderLookupRequest
impl RefUnwindSafe for OrderLookupRequest
impl Send for OrderLookupRequest
impl Sync for OrderLookupRequest
impl Unpin for OrderLookupRequest
impl UnsafeUnpin for OrderLookupRequest
impl UnwindSafe for OrderLookupRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.