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§
Source§impl Clone for CustomerSegment
impl Clone for CustomerSegment
Source§fn clone(&self) -> CustomerSegment
fn clone(&self) -> CustomerSegment
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 CustomerSegment
impl Debug for CustomerSegment
Source§impl Default for CustomerSegment
impl Default for CustomerSegment
Source§fn default() -> CustomerSegment
fn default() -> CustomerSegment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomerSegment
impl<'de> Deserialize<'de> for CustomerSegment
Source§fn 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
Source§impl PartialEq for CustomerSegment
impl PartialEq for CustomerSegment
Source§impl Serialize for CustomerSegment
impl Serialize for CustomerSegment
impl Eq for CustomerSegment
impl StructuralPartialEq for CustomerSegment
Auto Trait Implementations§
impl Freeze for CustomerSegment
impl RefUnwindSafe for CustomerSegment
impl Send for CustomerSegment
impl Sync for CustomerSegment
impl Unpin for CustomerSegment
impl UnwindSafe for CustomerSegment
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.