Struct aws_sdk_chime::model::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
sourceimpl 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) -> Option<&[PhoneNumberAssociation]>
pub fn associations(&self) -> Option<&[PhoneNumberAssociation]>
The phone number associations.
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.
sourceimpl PhoneNumber
impl PhoneNumber
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PhoneNumber
Trait Implementations
sourceimpl Clone for PhoneNumber
impl Clone for PhoneNumber
sourcefn clone(&self) -> PhoneNumber
fn clone(&self) -> PhoneNumber
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 PhoneNumber
impl Debug for PhoneNumber
sourceimpl PartialEq<PhoneNumber> for PhoneNumber
impl PartialEq<PhoneNumber> for PhoneNumber
sourcefn eq(&self, other: &PhoneNumber) -> bool
fn eq(&self, other: &PhoneNumber) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PhoneNumber) -> bool
fn ne(&self, other: &PhoneNumber) -> bool
This method tests for !=
.
impl StructuralPartialEq for PhoneNumber
Auto Trait Implementations
impl RefUnwindSafe for PhoneNumber
impl Send for PhoneNumber
impl Sync for PhoneNumber
impl Unpin for PhoneNumber
impl UnwindSafe for PhoneNumber
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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