Struct opentelemetry_api::baggage::BaggageMetadata
source · [−]pub struct BaggageMetadata(_);
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
sourceimpl Clone for BaggageMetadata
impl Clone for BaggageMetadata
sourcefn clone(&self) -> BaggageMetadata
fn clone(&self) -> BaggageMetadata
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 BaggageMetadata
impl Debug for BaggageMetadata
sourceimpl Default for BaggageMetadata
impl Default for BaggageMetadata
sourcefn default() -> BaggageMetadata
fn default() -> BaggageMetadata
Returns the “default value” for a type. Read more
sourceimpl From<&str> for BaggageMetadata
impl From<&str> for BaggageMetadata
sourceimpl From<String> for BaggageMetadata
impl From<String> for BaggageMetadata
sourcefn from(s: String) -> BaggageMetadata
fn from(s: String) -> BaggageMetadata
Converts to this type from the input type.
sourceimpl PartialEq<BaggageMetadata> for BaggageMetadata
impl PartialEq<BaggageMetadata> for BaggageMetadata
sourcefn 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 ==
. Read more
sourceimpl PartialOrd<BaggageMetadata> for BaggageMetadata
impl PartialOrd<BaggageMetadata> for BaggageMetadata
sourcefn partial_cmp(&self, other: &BaggageMetadata) -> Option<Ordering>
fn partial_cmp(&self, other: &BaggageMetadata) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Eq for BaggageMetadata
impl StructuralEq 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
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.