pub struct Size { /* private fields */ }
Expand description
The DynamoDB size
function. Returns a number representing an attributes size.
See also: Path::size
Implementations§
Source§impl Size
impl Size
Sourcepub fn equal<T>(self, right: T) -> Comparison
pub fn equal<T>(self, right: T) -> Comparison
Check if the value of this operand is equal to the given value.
Sourcepub fn not_equal<T>(self, right: T) -> Comparison
pub fn not_equal<T>(self, right: T) -> Comparison
Check if the value of this operand is not equal to the given value.
Sourcepub fn greater_than<T>(self, right: T) -> Comparison
pub fn greater_than<T>(self, right: T) -> Comparison
Check if the value of this operand is greater than the given value.
Sourcepub fn greater_than_or_equal<T>(self, right: T) -> Comparison
pub fn greater_than_or_equal<T>(self, right: T) -> Comparison
Check if the value of this operand is greater than or equal to the given value.
Sourcepub fn less_than<T>(self, right: T) -> Comparison
pub fn less_than<T>(self, right: T) -> Comparison
Check if the value of this operand is less than the given value.
Sourcepub fn less_than_or_equal<T>(self, right: T) -> Comparison
pub fn less_than_or_equal<T>(self, right: T) -> Comparison
Check if the value of this operand is less than or equal to the given value.
Sourcepub fn between<L, U>(self, lower: L, upper: U) -> Between
pub fn between<L, U>(self, lower: L, upper: U) -> Between
The DynamoDB BETWEEN
operator. True if self
is greater than or
equal to lower
, and less than or equal to upper
.
See also: Path::size
, Key::between
use dynamodb_expression::{Num, Path};
let condition = "foo".parse::<Path>()?.size().between(Num::new(512), Num::new(1024));
assert_eq!(r#"size(foo) BETWEEN 512 AND 1024"#, condition.to_string());
Sourcepub fn in_<I, T>(self, items: I) -> In
pub fn in_<I, T>(self, items: I) -> In
A DynamoDB IN
operation. True if the value at this Path
is equal
to any value in the list.
The list can contain up to 100 values. It must have at least 1.
See also: Path::size
use dynamodb_expression::{Num, Path};
let condition = "foo".parse::<Path>()?.size().in_([10, 20, 30, 40, 50].map(Num::new));
assert_eq!(r#"size(foo) IN (10,20,30,40,50)"#, condition.to_string());
Trait Implementations§
impl Eq for Size
impl StructuralPartialEq for Size
Auto Trait Implementations§
impl Freeze for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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