pub enum Value {
Scalar(Scalar),
Set(Set),
Map(Map),
List(List),
}Expand description
A DynamoDB value
Variants§
Implementations§
Source§impl Value
impl Value
Sourcepub fn new_string<T>(value: T) -> Self
pub fn new_string<T>(value: T) -> Self
Use when you need a string value for DynamoDB.
See also: Scalar::new_string
Sourcepub fn new_num<N>(value: N) -> Self
pub fn new_num<N>(value: N) -> Self
Use when you need a numeric value for DynamoDB.
See also: Num::new, Scalar::new_num,
Value::new_num_lower_exp, Value::new_num_upper_exp
Sourcepub fn new_num_lower_exp<N>(value: N) -> Self
pub fn new_num_lower_exp<N>(value: N) -> Self
Use when you need a numeric value for DynamoDB in exponent form
(with a lowercase e).
See also: Num::new_lower_exp, Scalar::new_num_lower_exp,
Value::new_num_upper_exp, Value::new_num
Sourcepub fn new_num_upper_exp<N>(value: N) -> Self
pub fn new_num_upper_exp<N>(value: N) -> Self
Use when you need a numeric value for DynamoDB in exponent form
(with an uppercase E).
See also: Num::new_upper_exp, Scalar::new_num_upper_exp,
Value::new_num_lower_exp, Value::new_num
Sourcepub fn new_bool(b: bool) -> Self
pub fn new_bool(b: bool) -> Self
Use when you need a boolean value for DynamoDB.
See also: Scalar::new_bool
Sourcepub fn new_binary<B>(binary: B) -> Self
pub fn new_binary<B>(binary: B) -> Self
Use when you need a binary value for DynamoDB.
See also: Scalar::new_binary
Sourcepub fn new_null() -> Self
pub fn new_null() -> Self
Use when you need a null value for DynamoDB.
See also: Scalar::new_null
Sourcepub fn new_string_set<T>(string_set: T) -> Self
pub fn new_string_set<T>(string_set: T) -> Self
Creates a value to use as a DynamoDB string set.
See also: StringSet::new, Set::new_string_set
Sourcepub fn new_num_set<T>(num_set: T) -> Self
pub fn new_num_set<T>(num_set: T) -> Self
Creates a value to use as a DynamoDB number set.
See also: NumSet::new, Set::new_num_set
Sourcepub fn new_binary_set<T>(binary_set: T) -> Self
pub fn new_binary_set<T>(binary_set: T) -> Self
Creates a value to use as a DynamoDB binary set.
See also: BinarySet::new, Set::new_binary_set
Sourcepub fn new_map<T>(map: T) -> Self
pub fn new_map<T>(map: T) -> Self
Creates a value to use as a DynamoDB map.
See also: Map::new
Trait Implementations§
impl Eq for Value
Source§impl FromIterator<u8> for Value
impl FromIterator<u8> for Value
impl StructuralPartialEq for Value
Source§impl TryFrom<AttributeValue> for Value
impl TryFrom<AttributeValue> for Value
Source§fn try_from(value: AttributeValue) -> Result<Self, Self::Error>
fn try_from(value: AttributeValue) -> Result<Self, Self::Error>
This will only return an error if a new AttributeValue variant is
added to the AWS DynamoDB SDK and isn’t supported here, yet.
Source§type Error = UnknownAttributeValueError
type Error = UnknownAttributeValueError
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more