pub struct Address { /* private fields */ }
Expand description
Describes an address
Implementations§
Source§impl Address
impl Address
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> AddressBuilder
pub fn country_code(&self) -> &String
pub fn state(&self) -> &String
pub fn city(&self) -> &String
pub fn street_line1(&self) -> &String
pub fn street_line2(&self) -> &String
pub fn postal_code(&self) -> &String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Address
impl<'de> Deserialize<'de> for Address
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 Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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