pub struct KeyValue {
pub key: Key,
pub value: Value,
}
Expand description
A key-value pair describing an attribute.
Fields§
§key: Key
The attribute name
value: Value
The attribute value
Implementations§
Trait Implementations§
source§impl From<KeyValue> for KeyValueMetadata
impl From<KeyValue> for KeyValueMetadata
source§impl FromIterator<KeyValue> for Baggage
impl FromIterator<KeyValue> for Baggage
source§impl Ord for KeyValue
Available on crate feature metrics
only.
impl Ord for KeyValue
Available on crate feature
metrics
only.Ordering is based on the key only.
source§impl PartialOrd for KeyValue
Available on crate feature metrics
only.
impl PartialOrd for KeyValue
Available on crate feature
metrics
only.impl Eq for KeyValue
Available on crate feature
metrics
only.impl StructuralPartialEq for KeyValue
Auto Trait Implementations§
impl Freeze for KeyValue
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Available on crate feature
trace
only.source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Available on crate feature
trace
only.