pub struct StreamAddOptions { /* private fields */ }
Expand description
Builder options for xadd_options
command
Implementations§
Source§impl StreamAddOptions
impl StreamAddOptions
Sourcepub fn nomkstream(self) -> Self
pub fn nomkstream(self) -> Self
Set the NOMKSTREAM flag on which prevents creating a stream for the XADD operation
Sourcepub fn trim(self, trim: StreamTrimStrategy) -> Self
pub fn trim(self, trim: StreamTrimStrategy) -> Self
Enable trimming when adding using the given trim strategy
Trait Implementations§
Source§impl Debug for StreamAddOptions
impl Debug for StreamAddOptions
Source§impl Default for StreamAddOptions
impl Default for StreamAddOptions
Source§fn default() -> StreamAddOptions
fn default() -> StreamAddOptions
Returns the “default value” for a type. Read more
Source§impl ToRedisArgs for StreamAddOptions
impl ToRedisArgs for StreamAddOptions
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
Auto Trait Implementations§
impl Freeze for StreamAddOptions
impl RefUnwindSafe for StreamAddOptions
impl Send for StreamAddOptions
impl Sync for StreamAddOptions
impl Unpin for StreamAddOptions
impl UnwindSafe for StreamAddOptions
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