Struct opentelemetry::KeyValue
source · 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
impl Ord for KeyValue
Ordering is based on the key only.
source§impl PartialEq for KeyValue
impl PartialEq for KeyValue
source§impl PartialOrd for KeyValue
impl PartialOrd for KeyValue
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for KeyValue
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)