pub struct CounterDescription {
pub name: String,
pub help: String,
pub doc: Option<String>,
pub metric_type: MetricType,
pub label_names: Vec<String>,
pub buckets: Vec<f64>,
pub pruning: MetricPrune,
}Fields§
§name: StringThe name of the counter, as it appears in the metric export
help: Stringone-line help description that is included in the metric export
doc: Option<String>If multi-line comments are present, this will hold the comments after the first help line.
metric_type: MetricTypeWhat sort of metric this is
label_names: Vec<String>If the metric has labels, this lists them out
buckets: Vec<f64>If the metric is a histogram, this holds the bucket thresholds
pruning: MetricPruneTrue if the metric is subject to pruning
Trait Implementations§
Source§impl Clone for CounterDescription
impl Clone for CounterDescription
Source§fn clone(&self) -> CounterDescription
fn clone(&self) -> CounterDescription
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 moreAuto Trait Implementations§
impl Freeze for CounterDescription
impl RefUnwindSafe for CounterDescription
impl Send for CounterDescription
impl Sync for CounterDescription
impl Unpin for CounterDescription
impl UnwindSafe for CounterDescription
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