pub struct Customer {Show 14 fields
pub id: i32,
pub date_created: NaiveDateTime,
pub date_modified: NaiveDateTime,
pub date_modified_gmt: NaiveDateTime,
pub email: String,
pub first_name: String,
pub last_name: String,
pub role: Role,
pub username: String,
pub billing: Billing,
pub shipping: Shipping,
pub is_paying_customer: bool,
pub avatar_url: String,
pub meta_data: Vec<MetaData>,
}Fields§
§id: i32Unique identifier for the resource
date_created: NaiveDateTimeThe date the customer was created, in the site’s timezone.
date_modified: NaiveDateTimeThe date the customer was created, as GMT
date_modified_gmt: NaiveDateTimeThe date the customer was last modified, as GMT.
email: StringThe email address for the customer
first_name: StringCustomer first name.
last_name: StringCustomer last name.
role: RoleCustomer role.
username: StringCustomer login name.
billing: BillingList of billing address data.
shipping: ShippingList of shipping address data.
is_paying_customer: boolIs the customer a paying customer
avatar_url: StringAvatar URL
meta_data: Vec<MetaData>Meta data.
Implementations§
Trait 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