Enum AttributeValue Copy item path Source pub enum AttributeValue {
S(String ),
N(String ),
B(Vec <u8 >),
BOOL(bool ),
NULL(bool ),
SS(Vec <String >),
NS(Vec <String >),
BS(Vec <Vec <u8 >>),
L(Vec <AttributeValue >),
M(HashMap <String , AttributeValue >),
}Expand description DynamoDB AttributeValue — the core type system.
Each variant corresponds to a DynamoDB type descriptor:
S (String), N (Number as string), B (Binary), BOOL, NULL,
SS (String Set), NS (Number Set), BS (Binary Set),
L (List), M (Map).
Number type — stored as string per DynamoDB convention
Binary type — raw bytes, serialized as base64
Number Set — each number stored as string
Binary Set — each element is raw bytes
List — ordered collection of AttributeValues
Calculate the size of this attribute value in bytes,
following DynamoDB’s item size calculation rules.
This does NOT include the attribute name — the caller
is responsible for adding the name’s UTF-8 byte length.
Returns the DynamoDB type descriptor string for this value.
Returns true if this is a scalar type (S, N, B, BOOL, NULL).
Returns true if this is a set type (SS, NS, BS).
Serialize this value to a deterministic TEXT representation
for use as a SQLite primary key column (pk or sk).
S: stored as-is (UTF-8 text sorts correctly)
N: normalized to a comparable string encoding
B: hex-encoded (preserves byte ordering)
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Deserialize this value from the given Serde deserializer.
Read more Formats the value using the given formatter.
Read more Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Serialize this value into the given Serde serializer.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Converts to this type from a reference to the input type.
Instruments this type with the provided
Span, returning an
Instrumented wrapper.
Read more Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.