Struct aws_sdk_chime::types::PhoneNumber
source · #[non_exhaustive]pub struct PhoneNumber {Show 13 fields
pub phone_number_id: Option<String>,
pub e164_phone_number: Option<String>,
pub country: Option<String>,
pub type: Option<PhoneNumberType>,
pub product_type: Option<PhoneNumberProductType>,
pub status: Option<PhoneNumberStatus>,
pub capabilities: Option<PhoneNumberCapabilities>,
pub associations: Option<Vec<PhoneNumberAssociation>>,
pub calling_name: Option<String>,
pub calling_name_status: Option<CallingNameStatus>,
pub created_timestamp: Option<DateTime>,
pub updated_timestamp: Option<DateTime>,
pub deletion_timestamp: Option<DateTime>,
}
Expand description
A phone number used for Amazon Chime Business Calling or an Amazon Chime Voice Connector.
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.phone_number_id: Option<String>
The phone number ID.
e164_phone_number: Option<String>
The phone number, in E.164 format.
country: Option<String>
The phone number country. Format: ISO 3166-1 alpha-2.
type: Option<PhoneNumberType>
The phone number type.
product_type: Option<PhoneNumberProductType>
The phone number product type.
status: Option<PhoneNumberStatus>
The phone number status.
capabilities: Option<PhoneNumberCapabilities>
The phone number capabilities.
associations: Option<Vec<PhoneNumberAssociation>>
The phone number associations.
calling_name: Option<String>
The outbound calling name associated with the phone number.
calling_name_status: Option<CallingNameStatus>
The outbound calling name status.
created_timestamp: Option<DateTime>
The phone number creation timestamp, in ISO 8601 format.
updated_timestamp: Option<DateTime>
The updated phone number timestamp, in ISO 8601 format.
deletion_timestamp: Option<DateTime>
The deleted phone number timestamp, in ISO 8601 format.
Implementations§
source§impl PhoneNumber
impl PhoneNumber
sourcepub fn phone_number_id(&self) -> Option<&str>
pub fn phone_number_id(&self) -> Option<&str>
The phone number ID.
sourcepub fn e164_phone_number(&self) -> Option<&str>
pub fn e164_phone_number(&self) -> Option<&str>
The phone number, in E.164 format.
sourcepub fn type(&self) -> Option<&PhoneNumberType>
pub fn type(&self) -> Option<&PhoneNumberType>
The phone number type.
sourcepub fn product_type(&self) -> Option<&PhoneNumberProductType>
pub fn product_type(&self) -> Option<&PhoneNumberProductType>
The phone number product type.
sourcepub fn status(&self) -> Option<&PhoneNumberStatus>
pub fn status(&self) -> Option<&PhoneNumberStatus>
The phone number status.
sourcepub fn capabilities(&self) -> Option<&PhoneNumberCapabilities>
pub fn capabilities(&self) -> Option<&PhoneNumberCapabilities>
The phone number capabilities.
sourcepub fn associations(&self) -> &[PhoneNumberAssociation]
pub fn associations(&self) -> &[PhoneNumberAssociation]
The phone number associations.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .associations.is_none()
.
sourcepub fn calling_name(&self) -> Option<&str>
pub fn calling_name(&self) -> Option<&str>
The outbound calling name associated with the phone number.
sourcepub fn calling_name_status(&self) -> Option<&CallingNameStatus>
pub fn calling_name_status(&self) -> Option<&CallingNameStatus>
The outbound calling name status.
sourcepub fn created_timestamp(&self) -> Option<&DateTime>
pub fn created_timestamp(&self) -> Option<&DateTime>
The phone number creation timestamp, in ISO 8601 format.
sourcepub fn updated_timestamp(&self) -> Option<&DateTime>
pub fn updated_timestamp(&self) -> Option<&DateTime>
The updated phone number timestamp, in ISO 8601 format.
sourcepub fn deletion_timestamp(&self) -> Option<&DateTime>
pub fn deletion_timestamp(&self) -> Option<&DateTime>
The deleted phone number timestamp, in ISO 8601 format.
source§impl PhoneNumber
impl PhoneNumber
sourcepub fn builder() -> PhoneNumberBuilder
pub fn builder() -> PhoneNumberBuilder
Creates a new builder-style object to manufacture PhoneNumber
.
Trait Implementations§
source§impl Clone for PhoneNumber
impl Clone for PhoneNumber
source§fn clone(&self) -> PhoneNumber
fn clone(&self) -> PhoneNumber
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PhoneNumber
impl Debug for PhoneNumber
source§impl PartialEq for PhoneNumber
impl PartialEq for PhoneNumber
source§fn eq(&self, other: &PhoneNumber) -> bool
fn eq(&self, other: &PhoneNumber) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PhoneNumber
Auto Trait Implementations§
impl Freeze for PhoneNumber
impl RefUnwindSafe for PhoneNumber
impl Send for PhoneNumber
impl Sync for PhoneNumber
impl Unpin for PhoneNumber
impl UnwindSafe for PhoneNumber
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