Struct datafusion::physical_plan::metrics::Label
source · pub struct Label { /* private fields */ }
Expand description
name=value
pairs identifiying a metric. This concept is called various things
in various different systems:
“labels” in prometheus and “tags” in InfluxDB , “attributes” in [open telemetry]https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/datamodel.md, etc.
As the name and value are expected to mostly be constant strings,
use a Cow
to avoid copying / allocations in this common case.
Implementations§
Trait Implementations§
source§impl PartialEq for Label
impl PartialEq for Label
impl Eq for Label
impl StructuralEq for Label
impl StructuralPartialEq for Label
Auto Trait Implementations§
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnwindSafe for Label
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.