Struct dynamodb_expression::operand::Size
source · 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) -> Comparisonwhere
T: Into<Operand>,
pub fn equal<T>(self, right: T) -> Comparisonwhere T: Into<Operand>,
Check if the value of this operand is equal to the given value.
sourcepub fn not_equal<T>(self, right: T) -> Comparisonwhere
T: Into<Operand>,
pub fn not_equal<T>(self, right: T) -> Comparisonwhere T: Into<Operand>,
Check if the value of this operand is not equal to the given value.
sourcepub fn greater_than<T>(self, right: T) -> Comparisonwhere
T: Into<Operand>,
pub fn greater_than<T>(self, right: T) -> Comparisonwhere T: Into<Operand>,
Check if the value of this operand is greater than the given value.
sourcepub fn greater_than_or_equal<T>(self, right: T) -> Comparisonwhere
T: Into<Operand>,
pub fn greater_than_or_equal<T>(self, right: T) -> Comparisonwhere T: Into<Operand>,
Check if the value of this operand is greater than or equal to the given value.
sourcepub fn less_than<T>(self, right: T) -> Comparisonwhere
T: Into<Operand>,
pub fn less_than<T>(self, right: T) -> Comparisonwhere T: Into<Operand>,
Check if the value of this operand is less than the given value.
sourcepub fn less_than_or_equal<T>(self, right: T) -> Comparisonwhere
T: Into<Operand>,
pub fn less_than_or_equal<T>(self, right: T) -> Comparisonwhere T: Into<Operand>,
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) -> Betweenwhere
L: Into<Operand>,
U: Into<Operand>,
pub fn between<L, U>(self, lower: L, upper: U) -> Betweenwhere L: Into<Operand>, U: Into<Operand>,
The DynamoDB BETWEEN
operator. True if self
is greater than or
equal to lower
, and less than or equal to upper
.
use dynamodb_expression::{Num, Path};
let condition = Path::new_name("foo").size().between(Num::new(512), Num::new(1024));
assert_eq!(r#"size(foo) BETWEEN 512 AND 1024"#, condition.to_string());
See also: Key::between
sourcepub fn in_<I, T>(self, items: I) -> Inwhere
I: IntoIterator<Item = T>,
T: Into<Operand>,
pub fn in_<I, T>(self, items: I) -> Inwhere I: IntoIterator<Item = T>, T: Into<Operand>,
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.
use dynamodb_expression::{Num, Path};
let condition = Path::new_name("foo").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§
source§impl PartialEq for Size
impl PartialEq for Size
impl Eq for Size
impl StructuralEq for Size
impl StructuralPartialEq for Size
Auto Trait Implementations§
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
§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
§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
key
and return true
if they are equal.