Struct fractal_utils::location::Address
[−]
[src]
pub struct Address { /* 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) -> &str
Returns address line 1
fn get_address2(&self) -> Option<&str>
Returns address line 2
fn get_city(&self) -> &str
Returns the city
fn get_state(&self) -> &str
Returns the state
fn get_zip(&self) -> &str
Returns the zip code
fn get_country(&self) -> &str
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
impl Encodable for Address[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
Serialize a value using an Encoder.