pub struct KeyRangeInfo {
pub context_values: Option<Vec<ContextValue>>,
pub end_key_index: Option<i32>,
pub info: Option<LocalizedString>,
pub keys_count: Option<i64>,
pub metric: Option<LocalizedString>,
pub start_key_index: Option<i32>,
pub time_offset: Option<Duration>,
pub unit: Option<LocalizedString>,
pub value: Option<f32>,
}
Expand description
A message representing information for a key range (possibly one key).
This type is not used in any activity, and only used as part of another schema.
Fields§
§context_values: Option<Vec<ContextValue>>
The list of context values for this key range.
end_key_index: Option<i32>
The index of the end key in indexed_keys.
info: Option<LocalizedString>
Information about this key range, for all metrics.
keys_count: Option<i64>
The number of keys this range covers.
metric: Option<LocalizedString>
The name of the metric. e.g. “latency”.
start_key_index: Option<i32>
The index of the start key in indexed_keys.
time_offset: Option<Duration>
The time offset. This is the time since the start of the time interval.
unit: Option<LocalizedString>
The unit of the metric. This is an unstructured field and will be mapped as is to the user.
value: Option<f32>
The value of the metric.
Trait Implementations§
Source§impl Clone for KeyRangeInfo
impl Clone for KeyRangeInfo
Source§fn clone(&self) -> KeyRangeInfo
fn clone(&self) -> KeyRangeInfo
Returns a duplicate 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 KeyRangeInfo
impl Debug for KeyRangeInfo
Source§impl Default for KeyRangeInfo
impl Default for KeyRangeInfo
Source§fn default() -> KeyRangeInfo
fn default() -> KeyRangeInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KeyRangeInfo
impl<'de> Deserialize<'de> for KeyRangeInfo
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
Source§impl Serialize for KeyRangeInfo
impl Serialize for KeyRangeInfo
impl Part for KeyRangeInfo
Auto Trait Implementations§
impl Freeze for KeyRangeInfo
impl RefUnwindSafe for KeyRangeInfo
impl Send for KeyRangeInfo
impl Sync for KeyRangeInfo
impl Unpin for KeyRangeInfo
impl UnwindSafe for KeyRangeInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more