Struct fractal_utils::location::Address
[−]
[src]
pub struct Address { // some fields omitted }
The particulars of the place where an organization or person resides
Methods
impl Address
[src]
fn new<S: AsRef<str>>(address1: S, address2: Option<S>, city: S, state: S, zip: S, country: S) -> Address
Creates a new Address
fn get_address1(&self) -> &String
Returns address line 1
fn get_address2(&self) -> Option<&String>
Returns address line 2
fn get_city(&self) -> &str
Returns the city
fn get_state(&self) -> &str
Returns the state
fn get_zip(&self) -> &String
Returns the zip code
fn get_country(&self) -> &String
Returns the country
Trait Implementations
impl PartialEq for Address
[src]
fn eq(&self, __arg_0: &Address) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Address) -> bool
This method tests for !=
.
impl Debug for Address
[src]
impl Clone for Address
[src]
fn clone(&self) -> Address
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more