Struct opentelemetry::KeyValue
source · [−]Expand description
A key-value pair describing an attribute.
Fields
key: Key
The attribute name
value: Value
The attribute value
Implementations
Trait Implementations
sourceimpl<S> Extend<KeyValue> for OrderMap<Key, Value, S>where
S: BuildHasher,
impl<S> Extend<KeyValue> for OrderMap<Key, Value, S>where
S: BuildHasher,
sourcefn extend<I>(&mut self, iterable: I)where
I: IntoIterator<Item = KeyValue>,
fn extend<I>(&mut self, iterable: I)where
I: IntoIterator<Item = KeyValue>,
Extend the map with all key-value pairs in the iterable.
This is equivalent to calling insert
for each of
them in order, which means that for keys that already existed
in the map, their value is updated but it keeps the existing order.
New keys are inserted in the order they appear in the sequence. If equivalents of a key occur more than once, the last corresponding value prevails.
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl From<KeyValue> for KeyValueMetadata
impl From<KeyValue> for KeyValueMetadata
sourcefn from(kv: KeyValue) -> KeyValueMetadata
fn from(kv: KeyValue) -> KeyValueMetadata
Converts to this type from the input type.
sourceimpl FromIterator<KeyValue> for Baggage
impl FromIterator<KeyValue> for Baggage
sourceimpl<S> FromIterator<KeyValue> for OrderMap<Key, Value, S>where
S: BuildHasher + Default,
impl<S> FromIterator<KeyValue> for OrderMap<Key, Value, S>where
S: BuildHasher + Default,
sourceimpl PartialEq<KeyValue> for KeyValue
impl PartialEq<KeyValue> 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more