Struct aws_sdk_identitystore::types::PhoneNumber
source · #[non_exhaustive]pub struct PhoneNumber {
pub value: Option<String>,
pub type: Option<String>,
pub primary: bool,
}
Expand description
The phone number associated with the user.
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.value: Option<String>
A string containing a phone number. For example, "8675309" or "+1 (800) 123-4567".
type: Option<String>
A string representing the type of a phone number. For example, "Mobile."
primary: bool
A Boolean value representing whether this is the primary phone number for the associated resource.
Implementations§
source§impl PhoneNumber
impl PhoneNumber
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
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 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
This method tests for
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
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.