Struct rustis::commands::TsRangeSample
source · pub struct TsRangeSample {
pub key: String,
pub labels: HashMap<String, String>,
pub values: Vec<(u64, f64)>,
}
Available on crate feature
redis-time-series
only.Expand description
Result for the ts_mrange
and
ts_mrevrange
commands.
Fields§
§key: String
The key name
labels: HashMap<String, String>
Label-value pairs
- By default, an empty list is reported
- If
withlabels
is specified, all labels associated with this time series are reported - If
selected_labels
is specified, the selected labels are reported
values: Vec<(u64, f64)>
Timestamp-value pairs for all samples/aggregations matching the range
Trait Implementations§
source§impl Debug for TsRangeSample
impl Debug for TsRangeSample
source§impl<'de> Deserialize<'de> for TsRangeSample
impl<'de> Deserialize<'de> for TsRangeSample
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TsRangeSample
impl RefUnwindSafe for TsRangeSample
impl Send for TsRangeSample
impl Sync for TsRangeSample
impl Unpin for TsRangeSample
impl UnwindSafe for TsRangeSample
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