Struct KeyValueMetadata
pub struct KeyValueMetadata { /* private fields */ }
Available on crate feature
opentelemetry
only.Expand description
Baggage
name/value pairs with their associated metadata.
Implementations§
§impl KeyValueMetadata
impl KeyValueMetadata
pub fn new<K, V, S>(key: K, value: V, metadata: S) -> KeyValueMetadata
pub fn new<K, V, S>(key: K, value: V, metadata: S) -> KeyValueMetadata
Create a new KeyValue
pair with metadata
Trait Implementations§
§impl Clone for KeyValueMetadata
impl Clone for KeyValueMetadata
§fn clone(&self) -> KeyValueMetadata
fn clone(&self) -> KeyValueMetadata
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 more§impl Debug for KeyValueMetadata
impl Debug for KeyValueMetadata
§impl From<KeyValue> for KeyValueMetadata
impl From<KeyValue> for KeyValueMetadata
§fn from(kv: KeyValue) -> KeyValueMetadata
fn from(kv: KeyValue) -> KeyValueMetadata
Converts to this type from the input type.
§impl FromIterator<KeyValueMetadata> for Baggage
impl FromIterator<KeyValueMetadata> for Baggage
§fn from_iter<I>(iter: I) -> Baggagewhere
I: IntoIterator<Item = KeyValueMetadata>,
fn from_iter<I>(iter: I) -> Baggagewhere
I: IntoIterator<Item = KeyValueMetadata>,
Creates a value from an iterator. Read more
§impl PartialEq for KeyValueMetadata
impl PartialEq for KeyValueMetadata
impl StructuralPartialEq for KeyValueMetadata
Auto Trait Implementations§
impl Freeze for KeyValueMetadata
impl RefUnwindSafe for KeyValueMetadata
impl Send for KeyValueMetadata
impl Sync for KeyValueMetadata
impl Unpin for KeyValueMetadata
impl UnwindSafe for KeyValueMetadata
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