pub struct AttributeDefinition {
pub attribute_name: String,
pub attribute_type: String,
}
Expand description
Represents an attribute for describing the key schema for the table and indexes.
Fields§
§attribute_name: String
A name for the attribute.
attribute_type: String
The data type for the attribute, where:
-
S
- the attribute is of type String -
N
- the attribute is of type Number -
B
- the attribute is of type Binary
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 Default for AttributeDefinition
impl Default for AttributeDefinition
Source§fn default() -> AttributeDefinition
fn default() -> AttributeDefinition
Returns the “default value” for a type. Read more
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 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 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