pub struct Customer {Show 13 fields
pub id: Uuid,
pub created_at: DateTime<Utc>,
pub modified_at: Option<DateTime<Utc>>,
pub metadata: HashMap<String, String>,
pub external_id: Option<String>,
pub email: String,
pub email_verified: bool,
pub name: Option<String>,
pub billing_address: Option<CustomerBillingAddress>,
pub tax_id: Option<Vec<String>>,
pub organization_id: Uuid,
pub deleted_at: Option<DateTime<Utc>>,
pub avatar_url: String,
}Fields§
§id: UuidThe ID of the customer.
created_at: DateTime<Utc>Creation timestamp of the object.
modified_at: Option<DateTime<Utc>>Last modification timestamp of the object.
metadata: HashMap<String, String>§external_id: Option<String>The ID of the customer in your system. This must be unique within the organization. Once set, it can’t be updated.
email: StringThe email address of the customer. This must be unique within the organization.
email_verified: boolWhether the customer email address is verified. The address is automatically verified when the customer accesses the customer portal using their email address.
name: Option<String>The name of the customer.
billing_address: Option<CustomerBillingAddress>§tax_id: Option<Vec<String>>Required array length: 2 elements
organization_id: UuidThe ID of the organization owning the customer.
deleted_at: Option<DateTime<Utc>>Timestamp for when the customer was soft deleted.
avatar_url: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Customer
impl<'de> Deserialize<'de> for Customer
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
Auto Trait Implementations§
impl Freeze for Customer
impl RefUnwindSafe for Customer
impl Send for Customer
impl Sync for Customer
impl Unpin for Customer
impl UnwindSafe for Customer
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