[][src]Struct rusoto_cognito_idp::SchemaAttributeType

pub struct SchemaAttributeType {
    pub attribute_data_type: Option<String>,
    pub developer_only_attribute: Option<bool>,
    pub mutable: Option<bool>,
    pub name: Option<String>,
    pub number_attribute_constraints: Option<NumberAttributeConstraintsType>,
    pub required: Option<bool>,
    pub string_attribute_constraints: Option<StringAttributeConstraintsType>,
}

Contains information about the schema attribute.

Fields

attribute_data_type: Option<String>

The attribute data type.

developer_only_attribute: Option<bool>

We recommend that you use WriteAttributes in the user pool client to control how attributes can be mutated for new use cases instead of using DeveloperOnlyAttribute.

Specifies whether the attribute type is developer only. This attribute can only be modified by an administrator. Users will not be able to modify this attribute using their access token. For example, DeveloperOnlyAttribute can be modified using the API but cannot be updated using the API.

mutable: Option<bool>

Specifies whether the value of the attribute can be changed.

For any user pool attribute that's mapped to an identity provider attribute, you must set this parameter to true. Amazon Cognito updates mapped attributes when users sign in to your application through an identity provider. If an attribute is immutable, Amazon Cognito throws an error when it attempts to update the attribute. For more information, see Specifying Identity Provider Attribute Mappings for Your User Pool.

name: Option<String>

A schema attribute of the name type.

number_attribute_constraints: Option<NumberAttributeConstraintsType>

Specifies the constraints for an attribute of the number type.

required: Option<bool>

Specifies whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.

string_attribute_constraints: Option<StringAttributeConstraintsType>

Specifies the constraints for an attribute of the string type.

Trait Implementations

impl Clone for SchemaAttributeType[src]

impl Debug for SchemaAttributeType[src]

impl Default for SchemaAttributeType[src]

impl<'de> Deserialize<'de> for SchemaAttributeType[src]

impl PartialEq<SchemaAttributeType> for SchemaAttributeType[src]

impl Serialize for SchemaAttributeType[src]

impl StructuralPartialEq for SchemaAttributeType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.