Struct opentelemetry::baggage::BaggageMetadata
source · pub struct BaggageMetadata(/* private fields */);
Expand description
An optional property set that can be added to Baggage
values.
BaggageMetadata
can be added to values in the form of a property set,
represented as semi-colon ;
delimited list of names and/or name-value
pairs, e.g. ;k1=v1;k2;k3=v3
.
Implementations§
Trait Implementations§
source§impl Clone for BaggageMetadata
impl Clone for BaggageMetadata
source§fn clone(&self) -> BaggageMetadata
fn clone(&self) -> BaggageMetadata
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 BaggageMetadata
impl Debug for BaggageMetadata
source§impl Default for BaggageMetadata
impl Default for BaggageMetadata
source§fn default() -> BaggageMetadata
fn default() -> BaggageMetadata
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BaggageMetadata
impl<'de> Deserialize<'de> for BaggageMetadata
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<&str> for BaggageMetadata
impl From<&str> for BaggageMetadata
source§impl From<String> for BaggageMetadata
impl From<String> for BaggageMetadata
source§fn from(s: String) -> BaggageMetadata
fn from(s: String) -> BaggageMetadata
Converts to this type from the input type.
source§impl PartialEq for BaggageMetadata
impl PartialEq for BaggageMetadata
source§fn eq(&self, other: &BaggageMetadata) -> bool
fn eq(&self, other: &BaggageMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BaggageMetadata
impl PartialOrd for BaggageMetadata
source§fn partial_cmp(&self, other: &BaggageMetadata) -> Option<Ordering>
fn partial_cmp(&self, other: &BaggageMetadata) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for BaggageMetadata
impl Serialize for BaggageMetadata
impl StructuralPartialEq for BaggageMetadata
Auto Trait Implementations§
impl RefUnwindSafe for BaggageMetadata
impl Send for BaggageMetadata
impl Sync for BaggageMetadata
impl Unpin for BaggageMetadata
impl UnwindSafe for BaggageMetadata
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