Struct contack::Address [−][src]
#[non_exhaustive]pub struct Address {
pub street: Option<String>,
pub locality: Option<String>,
pub region: Option<String>,
pub code: Option<String>,
pub country: Option<String>,
pub geo: Option<Geo>,
}
Expand description
A simple structure to hold address information
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.street: Option<String>
This is the street where the address points to.
locality: Option<String>
This is the locality/city where the address points to.
region: Option<String>
This is the region/county where the address points to.
code: Option<String>
This is the code where the address is. This may be a zip/postal code.
country: Option<String>
This is the country where ths address points to.
geo: Option<Geo>
This is the longitude and latitude of the address.
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Address
impl UnwindSafe for Address
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more