Struct aws_sdk_sns::types::PhoneNumberInformation
source · #[non_exhaustive]pub struct PhoneNumberInformation {
pub created_at: Option<DateTime>,
pub phone_number: Option<String>,
pub status: Option<String>,
pub iso2_country_code: Option<String>,
pub route_type: Option<RouteType>,
pub number_capabilities: Option<Vec<NumberCapability>>,
}Expand description
A list of phone numbers and their metadata.
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.created_at: Option<DateTime>The date and time when the phone number was created.
phone_number: Option<String>The phone number.
status: Option<String>The status of the phone number.
iso2_country_code: Option<String>The two-character code for the country or region, in ISO 3166-1 alpha-2 format.
route_type: Option<RouteType>The list of supported routes.
number_capabilities: Option<Vec<NumberCapability>>The capabilities of each phone number.
Implementations§
source§impl PhoneNumberInformation
impl PhoneNumberInformation
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The date and time when the phone number was created.
sourcepub fn phone_number(&self) -> Option<&str>
pub fn phone_number(&self) -> Option<&str>
The phone number.
sourcepub fn iso2_country_code(&self) -> Option<&str>
pub fn iso2_country_code(&self) -> Option<&str>
The two-character code for the country or region, in ISO 3166-1 alpha-2 format.
sourcepub fn route_type(&self) -> Option<&RouteType>
pub fn route_type(&self) -> Option<&RouteType>
The list of supported routes.
sourcepub fn number_capabilities(&self) -> &[NumberCapability]
pub fn number_capabilities(&self) -> &[NumberCapability]
The capabilities of each phone number.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .number_capabilities.is_none().
source§impl PhoneNumberInformation
impl PhoneNumberInformation
sourcepub fn builder() -> PhoneNumberInformationBuilder
pub fn builder() -> PhoneNumberInformationBuilder
Creates a new builder-style object to manufacture PhoneNumberInformation.
Trait Implementations§
source§impl Clone for PhoneNumberInformation
impl Clone for PhoneNumberInformation
source§fn clone(&self) -> PhoneNumberInformation
fn clone(&self) -> PhoneNumberInformation
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 PhoneNumberInformation
impl Debug for PhoneNumberInformation
source§impl PartialEq for PhoneNumberInformation
impl PartialEq for PhoneNumberInformation
source§fn eq(&self, other: &PhoneNumberInformation) -> bool
fn eq(&self, other: &PhoneNumberInformation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PhoneNumberInformation
Auto Trait Implementations§
impl RefUnwindSafe for PhoneNumberInformation
impl Send for PhoneNumberInformation
impl Sync for PhoneNumberInformation
impl Unpin for PhoneNumberInformation
impl UnwindSafe for PhoneNumberInformation
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>
Creates a shared type from an unshared type.