pub struct GetOrderStatusParams {
pub order_id: Option<String>,
pub client_order_id: Option<u64>,
}Expand description
Parameters for the GET /order-status endpoint.
Exactly one of order_id or client_order_id must be provided.
§References
Fields§
§order_id: Option<String>Order ID (e.g. “O-01ARZ3NDEKTSV4RRFFQ69G5FAV”).
client_order_id: Option<u64>Client order ID (64-bit integer).
Implementations§
Source§impl GetOrderStatusParams
impl GetOrderStatusParams
Sourcepub fn by_order_id(order_id: impl Into<String>) -> Self
pub fn by_order_id(order_id: impl Into<String>) -> Self
Creates params to look up by venue order ID.
Sourcepub fn by_client_order_id(cid: u64) -> Self
pub fn by_client_order_id(cid: u64) -> Self
Creates params to look up by client order ID.
Trait Implementations§
Source§impl Clone for GetOrderStatusParams
impl Clone for GetOrderStatusParams
Source§fn clone(&self) -> GetOrderStatusParams
fn clone(&self) -> GetOrderStatusParams
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 GetOrderStatusParams
impl Debug for GetOrderStatusParams
Source§impl<'de> Deserialize<'de> for GetOrderStatusParams
impl<'de> Deserialize<'de> for GetOrderStatusParams
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 GetOrderStatusParams
impl RefUnwindSafe for GetOrderStatusParams
impl Send for GetOrderStatusParams
impl Sync for GetOrderStatusParams
impl Unpin for GetOrderStatusParams
impl UnsafeUnpin for GetOrderStatusParams
impl UnwindSafe for GetOrderStatusParams
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more