pub enum TsAlign {
Start,
End,
Ts(u64),
}
Expand description
A time bucket alignment control for AGGREGATION. It controls the time bucket timestamps by changing the reference timestamp on which a bucket is defined.
- Start: The reference timestamp will be the query start interval time.
- End: The reference timestamp will be the query end interval time.
- Ts(time): A specific timestamp: align the reference timestamp to a specific time.
Variants§
Trait Implementations§
source§impl PartialEq for TsAlign
impl PartialEq for TsAlign
source§impl ToRedisArgs for TsAlign
impl ToRedisArgs for TsAlign
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 TsAlign
impl Eq for TsAlign
impl StructuralPartialEq for TsAlign
Auto Trait Implementations§
impl Freeze for TsAlign
impl RefUnwindSafe for TsAlign
impl Send for TsAlign
impl Sync for TsAlign
impl Unpin for TsAlign
impl UnwindSafe for TsAlign
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