pub struct SearchCustomersSort {
pub sort_field: Option<SortCustomersField>,
pub sort_order: Option<SortOrder>,
}
Expand description
Sorting criteria for a SearchCustomers
request.
Results can only be sorted by a timestamp field.
Fields§
§sort_field: Option<SortCustomersField>
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 CREATED_AT
and you use a DateTimeFilter
, your DateTimeFilter
must
filter for customers by their CREATED_AT
date. If this field does not match the timestamp
field in DateTimeFilter
, SearchCustomers
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 SearchCustomersSort
impl Clone for SearchCustomersSort
Source§fn clone(&self) -> SearchCustomersSort
fn clone(&self) -> SearchCustomersSort
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 SearchCustomersSort
impl Debug for SearchCustomersSort
Source§impl Default for SearchCustomersSort
impl Default for SearchCustomersSort
Source§fn default() -> SearchCustomersSort
fn default() -> SearchCustomersSort
Returns the “default value” for a type. Read more
Source§impl PartialEq for SearchCustomersSort
impl PartialEq for SearchCustomersSort
Source§impl Serialize for SearchCustomersSort
impl Serialize for SearchCustomersSort
impl Eq for SearchCustomersSort
impl StructuralPartialEq for SearchCustomersSort
Auto Trait Implementations§
impl Freeze for SearchCustomersSort
impl RefUnwindSafe for SearchCustomersSort
impl Send for SearchCustomersSort
impl Sync for SearchCustomersSort
impl Unpin for SearchCustomersSort
impl UnwindSafe for SearchCustomersSort
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.