pub struct TsGetOptions { /* private fields */ }
Available on crate feature
redis-time-series
only.Expand description
Options for the ts_get
command.
Implementations§
Source§impl TsGetOptions
impl TsGetOptions
Sourcepub fn latest(self) -> Self
pub fn latest(self) -> Self
Used when a time series is a compaction.
With latest
, ts_get
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_get
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
.
Trait Implementations§
Source§impl Default for TsGetOptions
impl Default for TsGetOptions
Source§fn default() -> TsGetOptions
fn default() -> TsGetOptions
Returns the “default value” for a type. Read more
Source§impl ToArgs for TsGetOptions
impl ToArgs for TsGetOptions
Source§fn write_args(&self, args: &mut CommandArgs)
fn write_args(&self, args: &mut CommandArgs)
Write this Rust type as one ore multiple args into CommandArgs. Read more
Auto Trait Implementations§
impl Freeze for TsGetOptions
impl RefUnwindSafe for TsGetOptions
impl Send for TsGetOptions
impl Sync for TsGetOptions
impl Unpin for TsGetOptions
impl UnwindSafe for TsGetOptions
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