pub struct SearchOrdersSort {
pub sort_field: Option<SearchOrdersSortField>,
pub sort_order: Option<SortOrder>,
}
Expand description
Sorting criteria for a SearchOrders
request.
Results can only be sorted by a timestamp field.
Fields§
§sort_field: Option<SearchOrdersSortField>
The field to sort by.
Important: When using a DateTimeFilter, sort_field
must
match the timestamp field that the DateTimeFilter
uses to filter. For example, if you set
your sort_field
to CLOSED_AT
and you use a DateTimeFilter
, your DateTimeFilter
must
filter for orders by their CLOSED_AT
date. If this field does not match the timestamp
field in DateTimeFilter
, SearchOrders
returns an error.
Default: CREATED_AT
.
sort_order: Option<SortOrder>
The chronological order in which results are returned. Defaults to DESC.
Trait Implementations§
Source§impl Clone for SearchOrdersSort
impl Clone for SearchOrdersSort
Source§fn clone(&self) -> SearchOrdersSort
fn clone(&self) -> SearchOrdersSort
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SearchOrdersSort
impl Debug for SearchOrdersSort
Source§impl Default for SearchOrdersSort
impl Default for SearchOrdersSort
Source§fn default() -> SearchOrdersSort
fn default() -> SearchOrdersSort
Returns the “default value” for a type. Read more
Source§impl PartialEq for SearchOrdersSort
impl PartialEq for SearchOrdersSort
Source§impl Serialize for SearchOrdersSort
impl Serialize for SearchOrdersSort
impl Eq for SearchOrdersSort
impl StructuralPartialEq for SearchOrdersSort
Auto Trait Implementations§
impl Freeze for SearchOrdersSort
impl RefUnwindSafe for SearchOrdersSort
impl Send for SearchOrdersSort
impl Sync for SearchOrdersSort
impl Unpin for SearchOrdersSort
impl UnwindSafe for SearchOrdersSort
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.