pub struct OrderQuery { /* private fields */ }Expand description
Filtered, paginated order-query parameters.
Construct this request with OrderQuery::builder. Unlike
Client::search_open_orders, the v2
query can explicitly include OrderStatus::Suspended bracket children.
Implementations§
Source§impl OrderQuery
impl OrderQuery
Sourcepub fn builder(account_id: AccountId) -> OrderQueryBuilder
pub fn builder(account_id: AccountId) -> OrderQueryBuilder
Starts a validated v2 order query for an account.
Sourcepub const fn account_id(&self) -> AccountId
pub const fn account_id(&self) -> AccountId
Returns the provider account being queried.
Sourcepub fn statuses(&self) -> &[OrderStatus]
pub fn statuses(&self) -> &[OrderStatus]
Borrows the requested lifecycle statuses.
Sourcepub const fn contract_id(&self) -> Option<&ContractId>
pub const fn contract_id(&self) -> Option<&ContractId>
Borrows the optional provider contract filter.
Sourcepub const fn created_after(&self) -> Option<Timestamp>
pub const fn created_after(&self) -> Option<Timestamp>
Returns the optional lower creation-time bound.
Sourcepub const fn created_before(&self) -> Option<Timestamp>
pub const fn created_before(&self) -> Option<Timestamp>
Returns the optional upper creation-time bound.
Sourcepub const fn page_offset(&self) -> Option<i32>
pub const fn page_offset(&self) -> Option<i32>
Returns the optional non-negative page offset.
Sourcepub const fn sort_by(&self) -> Option<OrderSortBy>
pub const fn sort_by(&self) -> Option<OrderSortBy>
Returns the optional sort field.
Sourcepub const fn sort_direction(&self) -> Option<OrderSortDirection>
pub const fn sort_direction(&self) -> Option<OrderSortDirection>
Returns the optional sort direction.
Sourcepub const fn include_total_count(&self) -> Option<bool>
pub const fn include_total_count(&self) -> Option<bool>
Returns the optional total-count request flag.
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 (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 Debug for OrderQuery
impl Debug for OrderQuery
impl Eq for OrderQuery
Source§impl PartialEq for OrderQuery
impl PartialEq for OrderQuery
Source§impl Serialize for OrderQuery
impl Serialize 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