#[non_exhaustive]pub struct SmsMfaConfigType {
pub sms_authentication_message: Option<String>,
pub sms_configuration: Option<SmsConfigurationType>,
}
Expand description
The SMS text message multi-factor authentication (MFA) configuration type.
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.sms_authentication_message: Option<String>
The SMS authentication message that will be sent to users with the code they must sign in. The message must contain the ‘{####}’ placeholder, which is replaced with the code. If the message isn't included, and default message will be used.
sms_configuration: Option<SmsConfigurationType>
The SMS configuration with the settings that your Amazon Cognito user pool must use to send an SMS message from your Amazon Web Services account through Amazon Simple Notification Service. To request Amazon SNS in the Amazon Web Services Region that you want, the Amazon Cognito user pool uses an Identity and Access Management (IAM) role that you provide for your Amazon Web Services account.
Implementations§
source§impl SmsMfaConfigType
impl SmsMfaConfigType
sourcepub fn sms_authentication_message(&self) -> Option<&str>
pub fn sms_authentication_message(&self) -> Option<&str>
The SMS authentication message that will be sent to users with the code they must sign in. The message must contain the ‘{####}’ placeholder, which is replaced with the code. If the message isn't included, and default message will be used.
sourcepub fn sms_configuration(&self) -> Option<&SmsConfigurationType>
pub fn sms_configuration(&self) -> Option<&SmsConfigurationType>
The SMS configuration with the settings that your Amazon Cognito user pool must use to send an SMS message from your Amazon Web Services account through Amazon Simple Notification Service. To request Amazon SNS in the Amazon Web Services Region that you want, the Amazon Cognito user pool uses an Identity and Access Management (IAM) role that you provide for your Amazon Web Services account.
source§impl SmsMfaConfigType
impl SmsMfaConfigType
sourcepub fn builder() -> SmsMfaConfigTypeBuilder
pub fn builder() -> SmsMfaConfigTypeBuilder
Creates a new builder-style object to manufacture SmsMfaConfigType
.
Trait Implementations§
source§impl Clone for SmsMfaConfigType
impl Clone for SmsMfaConfigType
source§fn clone(&self) -> SmsMfaConfigType
fn clone(&self) -> SmsMfaConfigType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SmsMfaConfigType
impl Debug for SmsMfaConfigType
source§impl PartialEq for SmsMfaConfigType
impl PartialEq for SmsMfaConfigType
source§fn eq(&self, other: &SmsMfaConfigType) -> bool
fn eq(&self, other: &SmsMfaConfigType) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SmsMfaConfigType
Auto Trait Implementations§
impl Freeze for SmsMfaConfigType
impl RefUnwindSafe for SmsMfaConfigType
impl Send for SmsMfaConfigType
impl Sync for SmsMfaConfigType
impl Unpin for SmsMfaConfigType
impl UnwindSafe for SmsMfaConfigType
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