Struct aws_sdk_chime::model::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
sourceimpl 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) -> Option<&[PhoneNumberType]>
pub fn supported_phone_number_types(&self) -> Option<&[PhoneNumberType]>
The supported phone number types.
sourceimpl PhoneNumberCountry
impl PhoneNumberCountry
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PhoneNumberCountry
Trait Implementations
sourceimpl Clone for PhoneNumberCountry
impl Clone for PhoneNumberCountry
sourcefn clone(&self) -> PhoneNumberCountry
fn clone(&self) -> PhoneNumberCountry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PhoneNumberCountry
impl Debug for PhoneNumberCountry
sourceimpl PartialEq<PhoneNumberCountry> for PhoneNumberCountry
impl PartialEq<PhoneNumberCountry> for PhoneNumberCountry
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PhoneNumberCountry) -> bool
fn ne(&self, other: &PhoneNumberCountry) -> bool
This method tests for !=
.
impl StructuralPartialEq for PhoneNumberCountry
Auto Trait Implementations
impl RefUnwindSafe for PhoneNumberCountry
impl Send for PhoneNumberCountry
impl Sync for PhoneNumberCountry
impl Unpin for PhoneNumberCountry
impl UnwindSafe for PhoneNumberCountry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more