pub enum AttributeValue {
Binary(String),
Boolean(bool),
BinarySet(Vec<String>),
List(Vec<AttributeValue>),
Map(HashMap<String, AttributeValue>),
Number(String),
NumberSet(Vec<String>),
Null(bool),
String(String),
StringSet(Vec<String>),
}Expand description
A value within the item object
Variants§
Binary(String)
A B value
Boolean(bool)
A BOOL value
BinarySet(Vec<String>)
A BS value
List(Vec<AttributeValue>)
An L value
Map(HashMap<String, AttributeValue>)
An M value
Number(String)
An N value
NumberSet(Vec<String>)
An NS value
Null(bool)
A NULL value
String(String)
An S value
StringSet(Vec<String>)
An SS value
Trait Implementations§
Source§impl Debug for AttributeValue
impl Debug for AttributeValue
Source§impl<'de> Deserialize<'de> for AttributeValue
impl<'de> Deserialize<'de> for AttributeValue
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 From<&str> for AttributeValue
impl From<&str> for AttributeValue
Source§impl<S> From<HashMap<S, AttributeValue>> for AttributeValue
impl<S> From<HashMap<S, AttributeValue>> for AttributeValue
Source§fn from(value: HashMap<S, AttributeValue>) -> Self
fn from(value: HashMap<S, AttributeValue>) -> Self
Converts to this type from the input type.
Source§impl From<String> for AttributeValue
impl From<String> for AttributeValue
Source§impl From<Vec<AttributeValue>> for AttributeValue
impl From<Vec<AttributeValue>> for AttributeValue
Source§fn from(value: Vec<AttributeValue>) -> Self
fn from(value: Vec<AttributeValue>) -> Self
Converts to this type from the input type.
Source§impl From<bool> for AttributeValue
impl From<bool> for AttributeValue
Source§impl From<i64> for AttributeValue
impl From<i64> for AttributeValue
Source§impl Serialize for AttributeValue
impl Serialize for AttributeValue
Source§impl TryFrom<AttributeValue> for String
impl TryFrom<AttributeValue> for String
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<AttributeValue> for Vec<u8>
impl TryFrom<AttributeValue> for Vec<u8>
Source§type Error = BinaryConversionError
type Error = BinaryConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<AttributeValue> for bool
impl TryFrom<AttributeValue> for bool
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<AttributeValue> for i64
impl TryFrom<AttributeValue> for i64
Source§type Error = NumericConversionError
type Error = NumericConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for AttributeValue
impl RefUnwindSafe for AttributeValue
impl Send for AttributeValue
impl Sync for AttributeValue
impl Unpin for AttributeValue
impl UnwindSafe for AttributeValue
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