Struct square_api_client::models::CustomerSegment
source · pub struct CustomerSegment {
pub id: Option<String>,
pub name: String,
pub created_at: Option<DateTime>,
pub updated_at: Option<DateTime>,
}
Expand description
Represents a group of customer profiles that match one or more predefined filter criteria.
Segments (also known as Smart Groups) are defined and created within the Customer Directory in the Square Seller Dashboard or Point of Sale.
Fields
id: Option<String>
Read only A unique Square-generated ID for the segment.
name: String
Read only The name of the segment.
created_at: Option<DateTime>
Read only The timestamp when the segment was created.
updated_at: Option<DateTime>
Read only The timestamp when the segment was last updated.
Trait Implementations
sourceimpl Clone for CustomerSegment
impl Clone for CustomerSegment
sourcefn clone(&self) -> CustomerSegment
fn clone(&self) -> CustomerSegment
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 CustomerSegment
impl Debug for CustomerSegment
sourceimpl Default for CustomerSegment
impl Default for CustomerSegment
sourcefn default() -> CustomerSegment
fn default() -> CustomerSegment
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CustomerSegment
impl<'de> Deserialize<'de> for CustomerSegment
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<CustomerSegment> for CustomerSegment
impl PartialEq<CustomerSegment> for CustomerSegment
sourcefn eq(&self, other: &CustomerSegment) -> bool
fn eq(&self, other: &CustomerSegment) -> bool
sourceimpl Serialize for CustomerSegment
impl Serialize for CustomerSegment
impl Eq for CustomerSegment
impl StructuralEq for CustomerSegment
impl StructuralPartialEq for CustomerSegment
Auto Trait Implementations
impl RefUnwindSafe for CustomerSegment
impl Send for CustomerSegment
impl Sync for CustomerSegment
impl Unpin for CustomerSegment
impl UnwindSafe for CustomerSegment
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.