pub struct Address { /* private fields */ }Expand description
The particulars of the place where an organization or person resides
Implementations§
Source§impl Address
impl Address
Sourcepub fn new<S: AsRef<str>>(
address1: S,
address2: Option<S>,
city: S,
state: S,
zip: S,
country: S,
) -> Address
pub fn new<S: AsRef<str>>( address1: S, address2: Option<S>, city: S, state: S, zip: S, country: S, ) -> Address
Creates a new Address
Sourcepub fn get_address1(&self) -> &str
pub fn get_address1(&self) -> &str
Returns address line 1
Sourcepub fn get_address2(&self) -> Option<&str>
pub fn get_address2(&self) -> Option<&str>
Returns address line 2
Sourcepub fn get_country(&self) -> &str
pub fn get_country(&self) -> &str
Returns the country
Trait Implementations§
impl StructuralPartialEq for Address
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)