Struct dynamodb_expression::key::Key
source · pub struct Key { /* private fields */ }
Expand description
Used to build a key condition expression.
An instance can be constructed using the Path::key
method, or the
From<Into<Path>>
implementation.
Implementations§
source§impl Key
impl Key
pub fn begins_with<T>(self, prefix: T) -> KeyConditionwhere T: Into<StringOrRef>,
pub fn between<L, U>(self, lower: L, upper: U) -> KeyConditionwhere L: Into<Operand>, U: Into<Operand>,
pub fn equal<T>(self, right: T) -> KeyConditionwhere T: Into<Operand>,
pub fn greater_than<T>(self, right: T) -> KeyConditionwhere T: Into<Operand>,
pub fn greater_than_or_equal<T>(self, right: T) -> KeyConditionwhere T: Into<Operand>,
pub fn less_than<T>(self, right: T) -> KeyConditionwhere T: Into<Operand>,
pub fn less_than_or_equal<T>(self, right: T) -> KeyConditionwhere T: Into<Operand>,
Trait Implementations§
source§impl Ord for Key
impl Ord for Key
source§impl PartialOrd for Key
impl PartialOrd for Key
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 Key
impl StructuralEq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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.