pub struct AttributeValue {
pub b: Option<Bytes>,
pub bool: Option<bool>,
pub bs: Option<Vec<Bytes>>,
pub l: Option<Vec<AttributeValue>>,
pub m: Option<HashMap<String, AttributeValue>>,
pub n: Option<String>,
pub ns: Option<Vec<String>>,
pub null: Option<bool>,
pub s: Option<String>,
pub ss: Option<Vec<String>>,
}Expand description
Represents the data for an attribute. You can set one, and only one, of the elements.
Each attribute in an item is a name-value pair. An attribute can be single-valued or multi-valued set. For example, a book item can have title and authors attributes. Each book has one title but can have many authors. The multi-valued attribute is a set; duplicate values are not allowed.
Fields§
§b: Option<Bytes>A Binary data type.
bool: Option<bool>A Boolean data type.
bs: Option<Vec<Bytes>>A Binary Set data type.
l: Option<Vec<AttributeValue>>A List data type.
m: Option<HashMap<String, AttributeValue>>A Map data type.
n: Option<String>A Number data type.
ns: Option<Vec<String>>A Number Set data type.
null: Option<bool>A Null data type.
s: Option<String>A String data type.
ss: Option<Vec<String>>A String Set data type.
Trait Implementations§
Source§impl Clone for AttributeValue
impl Clone for AttributeValue
Source§fn clone(&self) -> AttributeValue
fn clone(&self) -> AttributeValue
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 AttributeValue
impl Debug for AttributeValue
Source§impl Default for AttributeValue
impl Default for AttributeValue
Source§fn default() -> AttributeValue
fn default() -> AttributeValue
Returns the “default value” for a type. Read more
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 PartialEq for AttributeValue
impl PartialEq for AttributeValue
impl StructuralPartialEq for AttributeValue
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