Struct opentelemetry::KeyValue
source · pub struct KeyValue {
pub key: Key,
pub value: Value,
}
Expand description
KeyValue
pairs are used by AttributeSet
s and Span
attributes.
Fields§
§key: Key
Dimension or event key
value: Value
Dimension or event value
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for KeyValue
impl<'de> Deserialize<'de> for KeyValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<KeyValue> for KeyValueMetadata
impl From<KeyValue> for KeyValueMetadata
source§impl FromIterator<KeyValue> for Baggage
impl FromIterator<KeyValue> for Baggage
source§impl PartialEq for KeyValue
impl PartialEq for KeyValue
impl StructuralPartialEq for KeyValue
Auto Trait Implementations§
impl RefUnwindSafe for KeyValue
impl Send for KeyValue
impl Sync for KeyValue
impl Unpin for KeyValue
impl UnwindSafe for KeyValue
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