Struct aws_sdk_cognitoidentityprovider::operation::set_user_mfa_preference::SetUserMfaPreferenceInput
source · #[non_exhaustive]pub struct SetUserMfaPreferenceInput {
pub sms_mfa_settings: Option<SmsMfaSettingsType>,
pub software_token_mfa_settings: Option<SoftwareTokenMfaSettingsType>,
pub access_token: Option<String>,
}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.sms_mfa_settings: Option<SmsMfaSettingsType>The SMS text message multi-factor authentication (MFA) settings.
software_token_mfa_settings: Option<SoftwareTokenMfaSettingsType>The time-based one-time password (TOTP) software token MFA settings.
access_token: Option<String>A valid access token that Amazon Cognito issued to the user whose MFA preference you want to set.
Implementations§
source§impl SetUserMfaPreferenceInput
impl SetUserMfaPreferenceInput
sourcepub fn sms_mfa_settings(&self) -> Option<&SmsMfaSettingsType>
pub fn sms_mfa_settings(&self) -> Option<&SmsMfaSettingsType>
The SMS text message multi-factor authentication (MFA) settings.
sourcepub fn software_token_mfa_settings(
&self
) -> Option<&SoftwareTokenMfaSettingsType>
pub fn software_token_mfa_settings( &self ) -> Option<&SoftwareTokenMfaSettingsType>
The time-based one-time password (TOTP) software token MFA settings.
sourcepub fn access_token(&self) -> Option<&str>
pub fn access_token(&self) -> Option<&str>
A valid access token that Amazon Cognito issued to the user whose MFA preference you want to set.
source§impl SetUserMfaPreferenceInput
impl SetUserMfaPreferenceInput
sourcepub fn builder() -> SetUserMfaPreferenceInputBuilder
pub fn builder() -> SetUserMfaPreferenceInputBuilder
Creates a new builder-style object to manufacture SetUserMfaPreferenceInput.
Trait Implementations§
source§impl Clone for SetUserMfaPreferenceInput
impl Clone for SetUserMfaPreferenceInput
source§fn clone(&self) -> SetUserMfaPreferenceInput
fn clone(&self) -> SetUserMfaPreferenceInput
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 SetUserMfaPreferenceInput
impl Debug for SetUserMfaPreferenceInput
source§impl PartialEq for SetUserMfaPreferenceInput
impl PartialEq for SetUserMfaPreferenceInput
source§fn eq(&self, other: &SetUserMfaPreferenceInput) -> bool
fn eq(&self, other: &SetUserMfaPreferenceInput) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SetUserMfaPreferenceInput
Auto Trait Implementations§
impl RefUnwindSafe for SetUserMfaPreferenceInput
impl Send for SetUserMfaPreferenceInput
impl Sync for SetUserMfaPreferenceInput
impl Unpin for SetUserMfaPreferenceInput
impl UnwindSafe for SetUserMfaPreferenceInput
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.