#[non_exhaustive]pub struct GetUserOutput {
pub username: String,
pub user_attributes: Vec<AttributeType>,
pub mfa_options: Option<Vec<MfaOptionType>>,
pub preferred_mfa_setting: Option<String>,
pub user_mfa_setting_list: Option<Vec<String>>,
/* private fields */
}Expand description
Represents the response from the server from the request to get information about the user.
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.username: StringThe username of the user that you requested.
user_attributes: Vec<AttributeType>An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom: prefix to the attribute name.
mfa_options: Option<Vec<MfaOptionType>>This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.
preferred_mfa_setting: Option<String>The user's preferred MFA setting.
user_mfa_setting_list: Option<Vec<String>>The MFA options that are activated for the user. The possible values in this list are SMS_MFA and SOFTWARE_TOKEN_MFA.
Implementations§
source§impl GetUserOutput
impl GetUserOutput
sourcepub fn user_attributes(&self) -> &[AttributeType]
pub fn user_attributes(&self) -> &[AttributeType]
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom: prefix to the attribute name.
sourcepub fn mfa_options(&self) -> &[MfaOptionType]
pub fn mfa_options(&self) -> &[MfaOptionType]
This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .mfa_options.is_none().
sourcepub fn preferred_mfa_setting(&self) -> Option<&str>
pub fn preferred_mfa_setting(&self) -> Option<&str>
The user's preferred MFA setting.
sourcepub fn user_mfa_setting_list(&self) -> &[String]
pub fn user_mfa_setting_list(&self) -> &[String]
The MFA options that are activated for the user. The possible values in this list are SMS_MFA and SOFTWARE_TOKEN_MFA.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .user_mfa_setting_list.is_none().
source§impl GetUserOutput
impl GetUserOutput
sourcepub fn builder() -> GetUserOutputBuilder
pub fn builder() -> GetUserOutputBuilder
Creates a new builder-style object to manufacture GetUserOutput.
Trait Implementations§
source§impl Clone for GetUserOutput
impl Clone for GetUserOutput
source§fn clone(&self) -> GetUserOutput
fn clone(&self) -> GetUserOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetUserOutput
impl Debug for GetUserOutput
source§impl PartialEq for GetUserOutput
impl PartialEq for GetUserOutput
source§fn eq(&self, other: &GetUserOutput) -> bool
fn eq(&self, other: &GetUserOutput) -> bool
self and other values to be equal, and is used
by ==.source§impl RequestId for GetUserOutput
impl RequestId for GetUserOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.