Struct square_api_client::models::SearchOrdersSort
source · [−]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
sourceimpl Clone for SearchOrdersSort
impl Clone for SearchOrdersSort
sourcefn clone(&self) -> SearchOrdersSort
fn clone(&self) -> SearchOrdersSort
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SearchOrdersSort
impl Debug for SearchOrdersSort
sourceimpl Default for SearchOrdersSort
impl Default for SearchOrdersSort
sourcefn default() -> SearchOrdersSort
fn default() -> SearchOrdersSort
Returns the “default value” for a type. Read more
sourceimpl PartialEq<SearchOrdersSort> for SearchOrdersSort
impl PartialEq<SearchOrdersSort> for SearchOrdersSort
sourcefn eq(&self, other: &SearchOrdersSort) -> bool
fn eq(&self, other: &SearchOrdersSort) -> bool
sourceimpl Serialize for SearchOrdersSort
impl Serialize for SearchOrdersSort
impl Eq for SearchOrdersSort
impl StructuralEq for SearchOrdersSort
impl StructuralPartialEq for SearchOrdersSort
Auto Trait Implementations
impl RefUnwindSafe for SearchOrdersSort
impl Send for SearchOrdersSort
impl Sync for SearchOrdersSort
impl Unpin for SearchOrdersSort
impl UnwindSafe for SearchOrdersSort
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.