#[non_exhaustive]pub struct UsernameConfigurationType {
pub case_sensitive: bool,
}Expand description
The username 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.case_sensitive: boolSpecifies whether user name case sensitivity will be applied for all users in the user pool through Amazon Cognito APIs. For most use cases, set case sensitivity to False (case insensitive) as a best practice. When usernames and email addresses are case insensitive, users can sign in as the same user when they enter a different capitalization of their user name.
Valid values include:
- True
-
Enables case sensitivity for all username input. When this option is set to
True, users must sign in using the exact capitalization of their given username, such as “UserName”. This is the default value. - False
-
Enables case insensitivity for all username input. For example, when this option is set to
False, users can sign in usingusername,USERNAME, orUserName. This option also enables bothpreferred_usernameandemailalias to be case insensitive, in addition to theusernameattribute.
Implementations§
source§impl UsernameConfigurationType
impl UsernameConfigurationType
sourcepub fn case_sensitive(&self) -> bool
pub fn case_sensitive(&self) -> bool
Specifies whether user name case sensitivity will be applied for all users in the user pool through Amazon Cognito APIs. For most use cases, set case sensitivity to False (case insensitive) as a best practice. When usernames and email addresses are case insensitive, users can sign in as the same user when they enter a different capitalization of their user name.
Valid values include:
- True
-
Enables case sensitivity for all username input. When this option is set to
True, users must sign in using the exact capitalization of their given username, such as “UserName”. This is the default value. - False
-
Enables case insensitivity for all username input. For example, when this option is set to
False, users can sign in usingusername,USERNAME, orUserName. This option also enables bothpreferred_usernameandemailalias to be case insensitive, in addition to theusernameattribute.
source§impl UsernameConfigurationType
impl UsernameConfigurationType
sourcepub fn builder() -> UsernameConfigurationTypeBuilder
pub fn builder() -> UsernameConfigurationTypeBuilder
Creates a new builder-style object to manufacture UsernameConfigurationType.
Trait Implementations§
source§impl Clone for UsernameConfigurationType
impl Clone for UsernameConfigurationType
source§fn clone(&self) -> UsernameConfigurationType
fn clone(&self) -> UsernameConfigurationType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UsernameConfigurationType
impl Debug for UsernameConfigurationType
source§impl PartialEq for UsernameConfigurationType
impl PartialEq for UsernameConfigurationType
source§fn eq(&self, other: &UsernameConfigurationType) -> bool
fn eq(&self, other: &UsernameConfigurationType) -> bool
self and other values to be equal, and is used
by ==.