Struct opentelemetry::baggage::KeyValueMetadata
source · 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<'de> Deserialize<'de> for KeyValueMetadata
impl<'de> Deserialize<'de> for KeyValueMetadata
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
source§fn eq(&self, other: &KeyValueMetadata) -> bool
fn eq(&self, other: &KeyValueMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for KeyValueMetadata
impl Serialize for KeyValueMetadata
impl StructuralPartialEq for KeyValueMetadata
Auto Trait Implementations§
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