Struct square_api_client::models::CustomerGroup
source · [−]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
sourceimpl Clone for CustomerGroup
impl Clone for CustomerGroup
sourcefn clone(&self) -> CustomerGroup
fn clone(&self) -> CustomerGroup
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 CustomerGroup
impl Debug for CustomerGroup
sourceimpl Default for CustomerGroup
impl Default for CustomerGroup
sourcefn default() -> CustomerGroup
fn default() -> CustomerGroup
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for CustomerGroup
impl<'de> Deserialize<'de> for CustomerGroup
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<CustomerGroup> for CustomerGroup
impl PartialEq<CustomerGroup> for CustomerGroup
sourcefn eq(&self, other: &CustomerGroup) -> bool
fn eq(&self, other: &CustomerGroup) -> bool
sourceimpl Serialize for CustomerGroup
impl Serialize for CustomerGroup
impl Eq for CustomerGroup
impl StructuralEq for CustomerGroup
impl StructuralPartialEq for CustomerGroup
Auto Trait Implementations
impl RefUnwindSafe for CustomerGroup
impl Send for CustomerGroup
impl Sync for CustomerGroup
impl Unpin for CustomerGroup
impl UnwindSafe for CustomerGroup
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.