pub struct WriteStreamOptions {
pub disable_create: bool,
pub capacity: Option<(Trim, TrimPrecision)>,
}Expand description
Options for XADD command
Fields§
§disable_create: bool§capacity: Option<(Trim, TrimPrecision)>Trait Implementations§
Source§impl Clone for WriteStreamOptions
impl Clone for WriteStreamOptions
Source§fn clone(&self) -> WriteStreamOptions
fn clone(&self) -> WriteStreamOptions
Returns a duplicate 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 Debug for WriteStreamOptions
impl Debug for WriteStreamOptions
Source§impl Default for WriteStreamOptions
impl Default for WriteStreamOptions
Source§fn default() -> WriteStreamOptions
fn default() -> WriteStreamOptions
Returns the “default value” for a type. Read more
Source§impl ToRedisArgs for &WriteStreamOptions
impl ToRedisArgs for &WriteStreamOptions
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 is_single_arg(&self) -> bool
fn is_single_arg(&self) -> bool
Returns an indiciation if the value contained is exactly one
argument. It returns false if it’s zero or more than one. This
is used in some high level functions to intelligently switch
between
GET and MGET variants.impl Copy for WriteStreamOptions
Auto Trait Implementations§
impl Freeze for WriteStreamOptions
impl RefUnwindSafe for WriteStreamOptions
impl Send for WriteStreamOptions
impl Sync for WriteStreamOptions
impl Unpin for WriteStreamOptions
impl UnwindSafe for WriteStreamOptions
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