pub struct KeyValueMetadata {
pub key: Key,
pub value: Value,
pub metadata: BaggageMetadata,
}
Expand description
Baggage
name/value pairs with their associated metadata.
Fields§
§key: Key
Dimension or event key
value: Value
Dimension or event value
metadata: BaggageMetadata
Metadata associate with this key value pair
Implementations§
Trait Implementations§
Source§impl Clone for KeyValueMetadata
impl Clone for KeyValueMetadata
Source§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 moreSource§impl Debug for KeyValueMetadata
impl Debug for KeyValueMetadata
Source§impl From<KeyValue> for KeyValueMetadata
impl From<KeyValue> for KeyValueMetadata
Source§impl FromIterator<KeyValueMetadata> for Baggage
impl FromIterator<KeyValueMetadata> for Baggage
Source§fn from_iter<I: IntoIterator<Item = KeyValueMetadata>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = KeyValueMetadata>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§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
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.