pub struct CustomerAddress {Show 16 fields
pub id: Uuid,
pub customer_id: CustomerId,
pub address_type: AddressType,
pub first_name: String,
pub last_name: String,
pub company: Option<String>,
pub line1: String,
pub line2: Option<String>,
pub city: String,
pub state: Option<String>,
pub postal_code: String,
pub country: String,
pub phone: Option<String>,
pub is_default: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Customer address
Fields§
§id: Uuid§customer_id: CustomerId§address_type: AddressType§first_name: String§last_name: String§company: Option<String>§line1: String§line2: Option<String>§city: String§state: Option<String>§postal_code: String§country: String§phone: Option<String>§is_default: bool§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for CustomerAddress
impl Clone for CustomerAddress
Source§fn clone(&self) -> CustomerAddress
fn clone(&self) -> CustomerAddress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CustomerAddress
impl Debug for CustomerAddress
Source§impl<'de> Deserialize<'de> for CustomerAddress
impl<'de> Deserialize<'de> for CustomerAddress
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CustomerAddress, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CustomerAddress, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CustomerAddress
Source§impl PartialEq for CustomerAddress
impl PartialEq for CustomerAddress
Source§impl Serialize for CustomerAddress
impl Serialize for CustomerAddress
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CustomerAddress
Auto Trait Implementations§
impl Freeze for CustomerAddress
impl RefUnwindSafe for CustomerAddress
impl Send for CustomerAddress
impl Sync for CustomerAddress
impl Unpin for CustomerAddress
impl UnsafeUnpin for CustomerAddress
impl UnwindSafe for CustomerAddress
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