Struct rustis::commands::TsMGetOptions

source ·
pub struct TsMGetOptions { /* private fields */ }
Available on crate feature redis-time-series only.
Expand description

Options for the ts_mget command.

Implementations§

source§

impl TsMGetOptions

source

pub fn latest(self) -> Self

Used when a time series is a compaction.

With latest, ts_mget also reports the compacted value of the latest possibly partial bucket, given that this bucket’s start time falls within [from_timestamp, to_timestamp]. Without latest, ts_mget does not report the latest possibly partial bucket. When a time series is not a compaction, latest is ignored.

The data in the latest bucket of a compaction is possibly partial. A bucket is closed and compacted only upon arrival of a new sample that opens a new latest bucket. There are cases, however, when the compacted value of the latest possibly partial bucket is also required. In such a case, use latest.

source

pub fn withlabels(self) -> Self

Includes in the reply all label-value pairs representing metadata labels of the time series.

If withlabels or selected_labels are not specified, by default, an empty list is reported as label-value pairs.

source

pub fn selected_labels<L: SingleArg>( self, labels: impl SingleArgCollection<L> ) -> Self

returns a subset of the label-value pairs that represent metadata labels of the time series.

Use when a large number of labels exists per series, but only the values of some of the labels are required. If withlabels or selected_labels are not specified, by default, an empty list is reported as label-value pairs.

Trait Implementations§

source§

impl Default for TsMGetOptions

source§

fn default() -> TsMGetOptions

Returns the “default value” for a type. Read more
source§

impl ToArgs for TsMGetOptions

source§

fn write_args(&self, args: &mut CommandArgs)

Write this Rust type as one ore multiple args into CommandArgs. Read more
source§

fn num_args(&self) -> usize

Number arguments generated by this Rust type

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> MultipleArgsCollection<T> for T
where T: ToArgs,