Enum redis_ts::TsAggregationType
source · pub enum TsAggregationType {
}
Expand description
Allows you to specify a redis time series aggreation with a time bucket.
Variants§
Avg(u64)
Sum(u64)
Min(u64)
Max(u64)
Range(u64)
Count(u64)
First(u64)
Last(u64)
StdP(u64)
StdS(u64)
VarP(u64)
VarS(u64)
Twa(u64)
Trait Implementations§
source§impl Clone for TsAggregationType
impl Clone for TsAggregationType
source§fn clone(&self) -> TsAggregationType
fn clone(&self) -> TsAggregationType
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 TsAggregationType
impl Debug for TsAggregationType
source§impl PartialEq for TsAggregationType
impl PartialEq for TsAggregationType
source§fn eq(&self, other: &TsAggregationType) -> bool
fn eq(&self, other: &TsAggregationType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToRedisArgs for TsAggregationType
impl ToRedisArgs for TsAggregationType
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 TsAggregationType
impl Eq for TsAggregationType
impl StructuralPartialEq for TsAggregationType
Auto Trait Implementations§
impl Freeze for TsAggregationType
impl RefUnwindSafe for TsAggregationType
impl Send for TsAggregationType
impl Sync for TsAggregationType
impl Unpin for TsAggregationType
impl UnwindSafe for TsAggregationType
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