#[non_exhaustive]pub struct MetricSpec {
pub kind: Option<MetricKind>,
pub unit: Option<String>,
pub bounds: Vec<f64>,
}Expand description
Decoded (obs.v1.MetricSpec).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: Option<MetricKind>Counter / Gauge / Histogram.
unit: Option<String>UCUM unit ("ms", "By", "1", …).
bounds: Vec<f64>Histogram buckets.
Trait Implementations§
Source§impl Clone for MetricSpec
impl Clone for MetricSpec
Source§fn clone(&self) -> MetricSpec
fn clone(&self) -> MetricSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MetricSpec
impl Debug for MetricSpec
Source§impl Default for MetricSpec
impl Default for MetricSpec
Source§fn default() -> MetricSpec
fn default() -> MetricSpec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MetricSpec
impl RefUnwindSafe for MetricSpec
impl Send for MetricSpec
impl Sync for MetricSpec
impl Unpin for MetricSpec
impl UnsafeUnpin for MetricSpec
impl UnwindSafe for MetricSpec
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