Struct aws_sdk_chime::types::PhoneNumberCountry
source · #[non_exhaustive]pub struct PhoneNumberCountry {
pub country_code: Option<String>,
pub supported_phone_number_types: Option<Vec<PhoneNumberType>>,
}
Expand description
The phone number country.
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.country_code: Option<String>
The phone number country code. Format: ISO 3166-1 alpha-2.
supported_phone_number_types: Option<Vec<PhoneNumberType>>
The supported phone number types.
Implementations§
source§impl PhoneNumberCountry
impl PhoneNumberCountry
sourcepub fn country_code(&self) -> Option<&str>
pub fn country_code(&self) -> Option<&str>
The phone number country code. Format: ISO 3166-1 alpha-2.
sourcepub fn supported_phone_number_types(&self) -> &[PhoneNumberType]
pub fn supported_phone_number_types(&self) -> &[PhoneNumberType]
The supported phone number types.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .supported_phone_number_types.is_none()
.
source§impl PhoneNumberCountry
impl PhoneNumberCountry
sourcepub fn builder() -> PhoneNumberCountryBuilder
pub fn builder() -> PhoneNumberCountryBuilder
Creates a new builder-style object to manufacture PhoneNumberCountry
.
Trait Implementations§
source§impl Clone for PhoneNumberCountry
impl Clone for PhoneNumberCountry
source§fn clone(&self) -> PhoneNumberCountry
fn clone(&self) -> PhoneNumberCountry
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PhoneNumberCountry
impl Debug for PhoneNumberCountry
source§impl PartialEq for PhoneNumberCountry
impl PartialEq for PhoneNumberCountry
source§fn eq(&self, other: &PhoneNumberCountry) -> bool
fn eq(&self, other: &PhoneNumberCountry) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PhoneNumberCountry
Auto Trait Implementations§
impl Freeze for PhoneNumberCountry
impl RefUnwindSafe for PhoneNumberCountry
impl Send for PhoneNumberCountry
impl Sync for PhoneNumberCountry
impl Unpin for PhoneNumberCountry
impl UnwindSafe for PhoneNumberCountry
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.