Struct aws_sdk_outposts::types::Address
source · #[non_exhaustive]pub struct Address {
pub contact_name: Option<String>,
pub contact_phone_number: Option<String>,
pub address_line1: String,
pub address_line2: Option<String>,
pub address_line3: Option<String>,
pub city: String,
pub state_or_region: String,
pub district_or_county: Option<String>,
pub postal_code: String,
pub country_code: String,
pub municipality: Option<String>,
}
Expand description
Information about an address.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.contact_name: Option<String>
The name of the contact.
contact_phone_number: Option<String>
The phone number of the contact.
address_line1: String
The first line of the address.
address_line2: Option<String>
The second line of the address.
address_line3: Option<String>
The third line of the address.
city: String
The city for the address.
state_or_region: String
The state for the address.
district_or_county: Option<String>
The district or county for the address.
postal_code: String
The postal code for the address.
country_code: String
The ISO-3166 two-letter country code for the address.
municipality: Option<String>
The municipality for the address.
Implementations§
source§impl Address
impl Address
sourcepub fn contact_name(&self) -> Option<&str>
pub fn contact_name(&self) -> Option<&str>
The name of the contact.
sourcepub fn contact_phone_number(&self) -> Option<&str>
pub fn contact_phone_number(&self) -> Option<&str>
The phone number of the contact.
sourcepub fn address_line1(&self) -> &str
pub fn address_line1(&self) -> &str
The first line of the address.
sourcepub fn address_line2(&self) -> Option<&str>
pub fn address_line2(&self) -> Option<&str>
The second line of the address.
sourcepub fn address_line3(&self) -> Option<&str>
pub fn address_line3(&self) -> Option<&str>
The third line of the address.
sourcepub fn state_or_region(&self) -> &str
pub fn state_or_region(&self) -> &str
The state for the address.
sourcepub fn district_or_county(&self) -> Option<&str>
pub fn district_or_county(&self) -> Option<&str>
The district or county for the address.
sourcepub fn postal_code(&self) -> &str
pub fn postal_code(&self) -> &str
The postal code for the address.
sourcepub fn country_code(&self) -> &str
pub fn country_code(&self) -> &str
The ISO-3166 two-letter country code for the address.
sourcepub fn municipality(&self) -> Option<&str>
pub fn municipality(&self) -> Option<&str>
The municipality for the 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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.