pub struct CartAddress {
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 email: Option<String>,
}Expand description
Cart address (detailed for checkout)
Fields§
§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>§email: Option<String>Trait Implementations§
Source§impl Clone for CartAddress
impl Clone for CartAddress
Source§fn clone(&self) -> CartAddress
fn clone(&self) -> CartAddress
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 CartAddress
impl Debug for CartAddress
Source§impl Default for CartAddress
impl Default for CartAddress
Source§fn default() -> CartAddress
fn default() -> CartAddress
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CartAddress
impl<'de> Deserialize<'de> for CartAddress
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CartAddress, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CartAddress, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CartAddress
Source§impl From<Address> for CartAddress
impl From<Address> for CartAddress
Source§fn from(addr: Address) -> CartAddress
fn from(addr: Address) -> CartAddress
Converts to this type from the input type.
Source§impl From<CartAddress> for Address
impl From<CartAddress> for Address
Source§fn from(addr: CartAddress) -> Address
fn from(addr: CartAddress) -> Address
Converts to this type from the input type.
Source§impl PartialEq for CartAddress
impl PartialEq for CartAddress
Source§impl Serialize for CartAddress
impl Serialize for CartAddress
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 CartAddress
Auto Trait Implementations§
impl Freeze for CartAddress
impl RefUnwindSafe for CartAddress
impl Send for CartAddress
impl Sync for CartAddress
impl Unpin for CartAddress
impl UnsafeUnpin for CartAddress
impl UnwindSafe for CartAddress
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