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
sourceimpl KeyValueMetadata
impl KeyValueMetadata
sourcepub fn new<K, V, S>(key: K, value: V, metadata: S) -> KeyValueMetadatawhere
K: Into<Key>,
V: Into<Value>,
S: Into<BaggageMetadata>,
pub fn new<K, V, S>(key: K, value: V, metadata: S) -> KeyValueMetadatawhere
K: Into<Key>,
V: Into<Value>,
S: Into<BaggageMetadata>,
Create a new KeyValue
pair with metadata
Trait Implementations
sourceimpl Clone for KeyValueMetadata
impl Clone for KeyValueMetadata
sourcefn clone(&self) -> KeyValueMetadata
fn clone(&self) -> KeyValueMetadata
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for KeyValueMetadata
impl Debug for KeyValueMetadata
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<KeyValueMetadata> for Baggage
impl FromIterator<KeyValueMetadata> for Baggage
sourcefn 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
sourceimpl PartialEq<KeyValueMetadata> for KeyValueMetadata
impl PartialEq<KeyValueMetadata> for KeyValueMetadata
sourcefn 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 ==
. Read more
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
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