pub struct TimestampId { /* private fields */ }
Expand description
Timestamp component of StreamId
When used as argument, written as {timestamp}
Second part of id is automatically generated by Queue
Implementations§
Trait Implementations§
Source§impl Clone for TimestampId
impl Clone for TimestampId
Source§fn clone(&self) -> TimestampId
fn clone(&self) -> TimestampId
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 Debug for TimestampId
impl Debug for TimestampId
Source§impl Display for TimestampId
impl Display for TimestampId
Source§impl PartialEq for TimestampId
impl PartialEq for TimestampId
Source§impl ToRedisArgs for TimestampId
impl ToRedisArgs for TimestampId
Source§fn write_redis_args<W: ?Sized + RedisWrite>(&self, out: &mut W)
fn write_redis_args<W: ?Sized + RedisWrite>(&self, out: &mut W)
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 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.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
).impl Copy for TimestampId
impl Eq for TimestampId
impl StructuralPartialEq for TimestampId
Auto Trait Implementations§
impl Freeze for TimestampId
impl RefUnwindSafe for TimestampId
impl Send for TimestampId
impl Sync for TimestampId
impl Unpin for TimestampId
impl UnwindSafe for TimestampId
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