pub struct AttributeDefinition {
pub attribute_name: String,
pub attribute_type: ScalarAttributeType,
}Expand description
An attribute definition specifying the attribute name and its scalar type.
Used in CreateTable to declare attributes that participate in key schemas
or secondary indexes.
Fields§
§attribute_name: StringThe name of the attribute.
attribute_type: ScalarAttributeTypeThe scalar data type of the attribute (S, N, or B).
Trait Implementations§
Source§impl Clone for AttributeDefinition
impl Clone for AttributeDefinition
Source§fn clone(&self) -> AttributeDefinition
fn clone(&self) -> AttributeDefinition
Returns a duplicate 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 AttributeDefinition
impl Debug for AttributeDefinition
Source§impl<'de> Deserialize<'de> for AttributeDefinition
impl<'de> Deserialize<'de> for AttributeDefinition
Source§fn 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
Source§impl PartialEq for AttributeDefinition
impl PartialEq for AttributeDefinition
Source§impl Serialize for AttributeDefinition
impl Serialize for AttributeDefinition
impl Eq for AttributeDefinition
impl StructuralPartialEq for AttributeDefinition
Auto Trait Implementations§
impl Freeze for AttributeDefinition
impl RefUnwindSafe for AttributeDefinition
impl Send for AttributeDefinition
impl Sync for AttributeDefinition
impl Unpin for AttributeDefinition
impl UnsafeUnpin for AttributeDefinition
impl UnwindSafe for AttributeDefinition
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