Struct square_api_client::models::SearchCustomersFilter
source · [−]pub struct SearchCustomersFilter {
pub email_address: Option<SearchCustomersTextFilter>,
pub created_at: Option<SearchCustomersDateTimeFilter>,
pub phone_number: Option<SearchCustomersTextFilter>,
pub reference_id: Option<SearchCustomersTextFilter>,
pub creation_source: Option<SearchCustomerCreationSourceFilter>,
pub updated_at: Option<SearchCustomersDateTimeFilter>,
}
Expand description
Filtering criteria to use for a SearchCustomers
request.
Multiple filters are ANDed together.
Fields
email_address: Option<SearchCustomersTextFilter>
Filter by [ email addresses]
created_at: Option<SearchCustomersDateTimeFilter>
Filter for results within a time range.
Important: If you filter for customers by time range, you must set SearchCustomersSort
to
sort by the same field. Learn more about filtering customers by time
range.
phone_number: Option<SearchCustomersTextFilter>
Filter by the phone number.
reference_id: Option<SearchCustomersTextFilter>
Filter by the the secondary id that third party systems can inject when creating the customer.
creation_source: Option<SearchCustomerCreationSourceFilter>
The creation source filter. If one or more creation sources are set, customer profiles are included in, or excluded from, the result if they match at least one of the filter criteria.
updated_at: Option<SearchCustomersDateTimeFilter>
Similar to created_at, we can also fulter with a time range of updated_at property_names
Trait Implementations
sourceimpl Clone for SearchCustomersFilter
impl Clone for SearchCustomersFilter
sourcefn clone(&self) -> SearchCustomersFilter
fn clone(&self) -> SearchCustomersFilter
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 SearchCustomersFilter
impl Debug for SearchCustomersFilter
sourceimpl Default for SearchCustomersFilter
impl Default for SearchCustomersFilter
sourcefn default() -> SearchCustomersFilter
fn default() -> SearchCustomersFilter
Returns the “default value” for a type. Read more
sourceimpl PartialEq<SearchCustomersFilter> for SearchCustomersFilter
impl PartialEq<SearchCustomersFilter> for SearchCustomersFilter
sourcefn eq(&self, other: &SearchCustomersFilter) -> bool
fn eq(&self, other: &SearchCustomersFilter) -> bool
sourceimpl Serialize for SearchCustomersFilter
impl Serialize for SearchCustomersFilter
impl Eq for SearchCustomersFilter
impl StructuralEq for SearchCustomersFilter
impl StructuralPartialEq for SearchCustomersFilter
Auto Trait Implementations
impl RefUnwindSafe for SearchCustomersFilter
impl Send for SearchCustomersFilter
impl Sync for SearchCustomersFilter
impl Unpin for SearchCustomersFilter
impl UnwindSafe for SearchCustomersFilter
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.