Enum dynamodb_expression::value::scalar::Scalar
source · pub enum Scalar {
String(String),
Num(Num),
Bool(bool),
Binary(Vec<u8>),
Null,
}
Expand description
Variants§
String(String)
DynamoDB string value
Num(Num)
DynamoDB numeric value
Bool(bool)
DynamoDB boolean value
Binary(Vec<u8>)
DynamoDB binary value
Null
DynamoDB null value
Implementations§
source§impl Scalar
impl Scalar
sourcepub fn new_string<T>(value: T) -> Selfwhere
T: Into<String>,
pub fn new_string<T>(value: T) -> Selfwhere T: Into<String>,
Use when you need a string value for DynamoDB.
sourcepub fn new_num<N>(value: N) -> Selfwhere
N: ToString + Num,
pub fn new_num<N>(value: N) -> Selfwhere N: ToString + Num,
Use when you need a numeric value for DynamoDB.
Trait Implementations§
source§impl FromIterator<u8> for Scalar
impl FromIterator<u8> for Scalar
source§impl Ord for Scalar
impl Ord for Scalar
source§impl PartialEq for Scalar
impl PartialEq for Scalar
source§impl PartialOrd for Scalar
impl PartialOrd for Scalar
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Scalar
impl StructuralEq for Scalar
impl StructuralPartialEq for Scalar
Auto Trait Implementations§
impl RefUnwindSafe for Scalar
impl Send for Scalar
impl Sync for Scalar
impl Unpin for Scalar
impl UnwindSafe for Scalar
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.