pub struct HashFieldExpirationOptions { /* private fields */ }
Expand description
Options for the HSETEX command
Implementations§
Source§impl HashFieldExpirationOptions
impl HashFieldExpirationOptions
Sourcepub fn set_existence_check(
self,
field_existence_check: FieldExistenceCheck,
) -> Self
pub fn set_existence_check( self, field_existence_check: FieldExistenceCheck, ) -> Self
Set the field(s) existence check for the HSETEX command
Sourcepub fn set_expiration(self, expiration: SetExpiry) -> Self
pub fn set_expiration(self, expiration: SetExpiry) -> Self
Set the expiration option for the field(s) in the HSETEX command
Trait Implementations§
Source§impl Clone for HashFieldExpirationOptions
impl Clone for HashFieldExpirationOptions
Source§fn clone(&self) -> HashFieldExpirationOptions
fn clone(&self) -> HashFieldExpirationOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for HashFieldExpirationOptions
impl Default for HashFieldExpirationOptions
Source§fn default() -> HashFieldExpirationOptions
fn default() -> HashFieldExpirationOptions
Returns the “default value” for a type. Read more
Source§impl ToRedisArgs for HashFieldExpirationOptions
impl ToRedisArgs for HashFieldExpirationOptions
Source§fn write_redis_args<W>(&self, out: &mut W)where
W: ?Sized + RedisWrite,
fn write_redis_args<W>(&self, out: &mut W)where
W: ?Sized + RedisWrite,
This writes the value into a vector of bytes. Each item
is a single argument. Most items generate a single item. Read more
Source§fn to_redis_args(&self) -> Vec<Vec<u8>>
fn to_redis_args(&self) -> Vec<Vec<u8>>
This converts the value into a vector of bytes. Each item
is a single argument. Most items generate a vector of a
single item. Read more
Source§fn describe_numeric_behavior(&self) -> NumericBehavior
fn describe_numeric_behavior(&self) -> NumericBehavior
Returns an information about the contained value with regards
to it’s numeric behavior in a redis context. This is used in
some high level concepts to switch between different implementations
of redis functions (for instance
INCR
vs INCRBYFLOAT
).Source§fn num_of_args(&self) -> usize
fn num_of_args(&self) -> usize
Returns the number of arguments this value will generate. Read more
impl Copy for HashFieldExpirationOptions
Auto Trait Implementations§
impl Freeze for HashFieldExpirationOptions
impl RefUnwindSafe for HashFieldExpirationOptions
impl Send for HashFieldExpirationOptions
impl Sync for HashFieldExpirationOptions
impl Unpin for HashFieldExpirationOptions
impl UnwindSafe for HashFieldExpirationOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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