[][src]Enum redis_ts::TsDuplicatePolicy

pub enum TsDuplicatePolicy {
    Block,
    First,
    Last,
    Min,
    Max,
    Other(String),
}

Different options for handling inserts of duplicate values. Block is the behaviour redis time series was using before preventing all inserts of values older or equal to latest value in series. Fist will simply ignore the new value (as opposed to returning an error), Last will use the new value, Min the lower and Max the higher value.

Variants

Block
First
Last
Min
Max
Other(String)

Trait Implementations

impl Clone for TsDuplicatePolicy[src]

impl Debug for TsDuplicatePolicy[src]

impl Eq for TsDuplicatePolicy[src]

impl FromRedisValue for TsDuplicatePolicy[src]

impl PartialEq<TsDuplicatePolicy> for TsDuplicatePolicy[src]

impl StructuralEq for TsDuplicatePolicy[src]

impl StructuralPartialEq for TsDuplicatePolicy[src]

impl ToRedisArgs for TsDuplicatePolicy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.