Struct frankenstein::objects::ShippingAddress
source · [−]pub struct ShippingAddress {
pub country_code: String,
pub state: String,
pub city: String,
pub street_line1: String,
pub street_line2: String,
pub post_code: String,
}
Fields
country_code: String
state: String
city: String
street_line1: String
street_line2: String
post_code: String
Implementations
sourceimpl ShippingAddress
impl ShippingAddress
sourcepub fn builder() -> ShippingAddressBuilder<((), (), (), (), (), ())>
pub fn builder() -> ShippingAddressBuilder<((), (), (), (), (), ())>
Create a builder for building ShippingAddress
.
On the builder, call .country_code(...)
, .state(...)
, .city(...)
, .street_line1(...)
, .street_line2(...)
, .post_code(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ShippingAddress
.
Trait Implementations
sourceimpl Clone for ShippingAddress
impl Clone for ShippingAddress
sourcefn clone(&self) -> ShippingAddress
fn clone(&self) -> ShippingAddress
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ShippingAddress
impl Debug for ShippingAddress
sourceimpl<'de> Deserialize<'de> for ShippingAddress
impl<'de> Deserialize<'de> for ShippingAddress
sourcefn 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
sourceimpl PartialEq<ShippingAddress> for ShippingAddress
impl PartialEq<ShippingAddress> for ShippingAddress
sourcefn eq(&self, other: &ShippingAddress) -> bool
fn eq(&self, other: &ShippingAddress) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ShippingAddress) -> bool
fn ne(&self, other: &ShippingAddress) -> bool
This method tests for !=
.
sourceimpl Serialize for ShippingAddress
impl Serialize for ShippingAddress
impl StructuralPartialEq for ShippingAddress
Auto Trait Implementations
impl RefUnwindSafe for ShippingAddress
impl Send for ShippingAddress
impl Sync for ShippingAddress
impl Unpin for ShippingAddress
impl UnwindSafe for ShippingAddress
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more