Struct rusoto_cognito_idp::SchemaAttributeType
source · [−]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>,
}
Expand description
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 AdminUpdateUserAttributes but cannot be updated using UpdateUserAttributes.
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
sourceimpl Clone for SchemaAttributeType
impl Clone for SchemaAttributeType
sourcefn clone(&self) -> SchemaAttributeType
fn clone(&self) -> SchemaAttributeType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SchemaAttributeType
impl Debug for SchemaAttributeType
sourceimpl Default for SchemaAttributeType
impl Default for SchemaAttributeType
sourcefn default() -> SchemaAttributeType
fn default() -> SchemaAttributeType
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SchemaAttributeType
impl<'de> Deserialize<'de> for SchemaAttributeType
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<SchemaAttributeType> for SchemaAttributeType
impl PartialEq<SchemaAttributeType> for SchemaAttributeType
sourcefn eq(&self, other: &SchemaAttributeType) -> bool
fn eq(&self, other: &SchemaAttributeType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SchemaAttributeType) -> bool
fn ne(&self, other: &SchemaAttributeType) -> bool
This method tests for !=
.
sourceimpl Serialize for SchemaAttributeType
impl Serialize for SchemaAttributeType
impl StructuralPartialEq for SchemaAttributeType
Auto Trait Implementations
impl RefUnwindSafe for SchemaAttributeType
impl Send for SchemaAttributeType
impl Sync for SchemaAttributeType
impl Unpin for SchemaAttributeType
impl UnwindSafe for SchemaAttributeType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more