pub enum ScalarAttributeType {
S,
N,
B,
Unknown(String),
}Expand description
Scalar attribute types supported in key schema and attribute definitions.
DynamoDB only allows S, N, and B for key attributes, but the wire
protocol may receive other values which must be rejected with a
ValidationException rather than a deserialization error.
Variants§
S
String type.
N
Number type.
B
Binary type.
Unknown(String)
An unknown/invalid attribute type received from the client.
Implementations§
Trait Implementations§
Source§impl Clone for ScalarAttributeType
impl Clone for ScalarAttributeType
Source§fn clone(&self) -> ScalarAttributeType
fn clone(&self) -> ScalarAttributeType
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 ScalarAttributeType
impl Debug for ScalarAttributeType
Source§impl<'de> Deserialize<'de> for ScalarAttributeType
impl<'de> Deserialize<'de> for ScalarAttributeType
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ScalarAttributeType
impl Display for ScalarAttributeType
Source§impl Hash for ScalarAttributeType
impl Hash for ScalarAttributeType
Source§impl PartialEq for ScalarAttributeType
impl PartialEq for ScalarAttributeType
Source§impl Serialize for ScalarAttributeType
impl Serialize for ScalarAttributeType
impl Eq for ScalarAttributeType
impl StructuralPartialEq for ScalarAttributeType
Auto Trait Implementations§
impl Freeze for ScalarAttributeType
impl RefUnwindSafe for ScalarAttributeType
impl Send for ScalarAttributeType
impl Sync for ScalarAttributeType
impl Unpin for ScalarAttributeType
impl UnsafeUnpin for ScalarAttributeType
impl UnwindSafe for ScalarAttributeType
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