Struct opentelemetry::attributes::AttributeSet
source · pub struct AttributeSet { /* private fields */ }
Available on crate feature
metrics
only.Expand description
An immutable set of distinct attributes.
Implementations§
source§impl AttributeSet
impl AttributeSet
sourcepub fn from_attributes<T>(attributes: T) -> AttributeSetwhere
T: IntoIterator<Item = KeyValue>,
pub fn from_attributes<T>(attributes: T) -> AttributeSetwhere T: IntoIterator<Item = KeyValue>,
Construct a new attribute set form a distinct set of attributes
Trait Implementations§
source§impl Clone for AttributeSet
impl Clone for AttributeSet
source§fn clone(&self) -> AttributeSet
fn clone(&self) -> AttributeSet
Returns a copy 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 moresource§impl Debug for AttributeSet
impl Debug for AttributeSet
source§impl Default for AttributeSet
impl Default for AttributeSet
source§fn default() -> AttributeSet
fn default() -> AttributeSet
Returns the “default value” for a type. Read more