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: i32
Unique identifier for the resource
date_created: NaiveDateTime
The date the customer was created, in the site’s timezone.
date_modified: NaiveDateTime
The date the customer was created, as GMT
date_modified_gmt: NaiveDateTime
The date the customer was last modified, as GMT.
email: String
The email address for the customer
first_name: String
Customer first name.
last_name: String
Customer last name.
role: Role
Customer role.
username: String
Customer login name.
billing: Billing
List of billing address data.
shipping: Shipping
List of shipping address data.
is_paying_customer: bool
Is the customer a paying customer
avatar_url: String
Avatar 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