pub struct Declared {
pub carrier: Carrier,
pub kind: Option<MetricKind>,
pub unit: Option<String>,
pub buckets: Option<Vec<f64>>,
pub semantic: Option<Semantic>,
pub epoch: Option<EpochIn>,
}Expand description
A valid declaration (§2.2).
Fields§
§carrier: Carrier§kind: Option<MetricKind>The declared kind; None for a Point that says its own.
unit: Option<String>§buckets: Option<Vec<f64>>The bounds, as doubles (§2.2), exactly when the kind is histogram.
semantic: Option<Semantic>§epoch: Option<EpochIn>Where an in-band epoch rides, if anywhere.
Trait Implementations§
impl StructuralPartialEq for Declared
Auto Trait Implementations§
impl Forget for Declared
impl Freeze for Declared
impl Move for Declared
impl RefUnwindSafe for Declared
impl Send for Declaredwhere
RawVecInner: Send,
impl Sync for Declaredwhere
RawVecInner: Sync,
impl Unpin for Declared
impl UnsafeUnpin for Declared
impl UnwindSafe for Declaredwhere
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<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