pub struct CustomerGroup {
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.
Customer groups can be created, be modified, and have their membership defined using the Customers API or 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 customer group.
name: String
The name of the customer group.
created_at: Option<DateTime>
Read only The timestamp when the customer group was created.
updated_at: Option<DateTime>
Read only The timestamp when the customer group was last updated.
Trait Implementations§
Source§impl Clone for CustomerGroup
impl Clone for CustomerGroup
Source§fn clone(&self) -> CustomerGroup
fn clone(&self) -> CustomerGroup
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 CustomerGroup
impl Debug for CustomerGroup
Source§impl Default for CustomerGroup
impl Default for CustomerGroup
Source§fn default() -> CustomerGroup
fn default() -> CustomerGroup
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomerGroup
impl<'de> Deserialize<'de> for CustomerGroup
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 CustomerGroup
impl PartialEq for CustomerGroup
Source§impl Serialize for CustomerGroup
impl Serialize for CustomerGroup
impl Eq for CustomerGroup
impl StructuralPartialEq for CustomerGroup
Auto Trait Implementations§
impl Freeze for CustomerGroup
impl RefUnwindSafe for CustomerGroup
impl Send for CustomerGroup
impl Sync for CustomerGroup
impl Unpin for CustomerGroup
impl UnwindSafe for CustomerGroup
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.