pub struct FieldSeries {
pub field: String,
pub index: usize,
pub kind: MetricKind,
pub unit: Option<String>,
pub semantic: Option<Semantic>,
pub mirror: Option<String>,
pub width: Option<u32>,
}Expand description
One field’s series (v2 §2.16, §2.17): which field, and the kind, unit and semantic its entry gives it.
Fields§
§field: StringThe field’s name.
index: usizeThe field’s index in the record type.
kind: MetricKindcounter, gauge, boolean or text: what a field carries.
unit: Option<String>§semantic: Option<Semantic>§mirror: Option<String>The mirrored resource’s template, for a mirror; None inline. A
label, never the series’ identity (v2 §2.17).
width: Option<u32>A counter field’s width, from 1 to 64; None for any other kind.
Trait Implementations§
Source§impl Clone for FieldSeries
impl Clone for FieldSeries
Source§impl Debug for FieldSeries
impl Debug for FieldSeries
impl Eq for FieldSeries
Source§impl PartialEq for FieldSeries
impl PartialEq for FieldSeries
impl StructuralPartialEq for FieldSeries
Auto Trait Implementations§
impl Forget for FieldSeries
impl Freeze for FieldSeries
impl Move for FieldSeries
impl RefUnwindSafe for FieldSeries
impl Send for FieldSerieswhere
RawVecInner: Send,
impl Sync for FieldSerieswhere
RawVecInner: Sync,
impl Unpin for FieldSeries
impl UnsafeUnpin for FieldSeries
impl UnwindSafe for FieldSerieswhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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