pub struct Address { /* private fields */ }
Implementations§
Source§impl Address
impl Address
pub fn new() -> Self
pub fn set_address<T: Into<String>>(&mut self, address: T)
pub fn set_zip_code<T: Into<String>>(&mut self, zip_code: T)
pub fn set_contact_name<T: Into<String>>(&mut self, contact_name: T)
pub fn set_city<T: Into<String>>(&mut self, city: T)
pub fn set_country<T: Into<String>>(&mut self, country: T)
pub fn address(&self) -> Option<&String>
pub fn zip_code(&self) -> Option<&String>
pub fn contact_name(&self) -> Option<&String>
pub fn city(&self) -> Option<&String>
pub fn country(&self) -> Option<&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