Struct aws_sdk_chime::types::Address
source · #[non_exhaustive]pub struct Address {
pub street_name: Option<String>,
pub street_suffix: Option<String>,
pub post_directional: Option<String>,
pub pre_directional: Option<String>,
pub street_number: Option<String>,
pub city: Option<String>,
pub state: Option<String>,
pub postal_code: Option<String>,
pub postal_code_plus4: Option<String>,
pub country: Option<String>,
}
Expand description
A validated address.
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_name: Option<String>
The address street, such as 8th Avenue
.
street_suffix: Option<String>
The address suffix, such as the N
in 8th Avenue N
.
post_directional: Option<String>
An address suffix location, such as the S. Unit A
in Central Park S. Unit A
.
pre_directional: Option<String>
An address prefix location, such as the N
in N. Third St.
.
street_number: Option<String>
The numeric portion of an address.
city: Option<String>
The city of an address.
state: Option<String>
The state of an address.
postal_code: Option<String>
The postal code of an address.
postal_code_plus4: Option<String>
The Zip + 4 or postal code + 4 of an address.
country: Option<String>
The country of an address.
Implementations§
source§impl Address
impl Address
sourcepub fn street_name(&self) -> Option<&str>
pub fn street_name(&self) -> Option<&str>
The address street, such as 8th Avenue
.
sourcepub fn street_suffix(&self) -> Option<&str>
pub fn street_suffix(&self) -> Option<&str>
The address suffix, such as the N
in 8th Avenue N
.
sourcepub fn post_directional(&self) -> Option<&str>
pub fn post_directional(&self) -> Option<&str>
An address suffix location, such as the S. Unit A
in Central Park S. Unit A
.
sourcepub fn pre_directional(&self) -> Option<&str>
pub fn pre_directional(&self) -> Option<&str>
An address prefix location, such as the N
in N. Third St.
.
sourcepub fn street_number(&self) -> Option<&str>
pub fn street_number(&self) -> Option<&str>
The numeric portion of an address.
sourcepub fn postal_code(&self) -> Option<&str>
pub fn postal_code(&self) -> Option<&str>
The postal code of an address.
sourcepub fn postal_code_plus4(&self) -> Option<&str>
pub fn postal_code_plus4(&self) -> Option<&str>
The Zip + 4 or postal code + 4 of an address.
Trait Implementations§
source§impl PartialEq for Address
impl PartialEq for Address
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more