pub struct LabelSet { /* private fields */ }Expand description
Represents a set of labels as structured key-value pairs
Implementations§
Source§impl LabelSet
impl LabelSet
Sourcepub fn from_key_and_global(
key: &Key,
global_labels: &IndexMap<String, String>,
) -> Self
pub fn from_key_and_global( key: &Key, global_labels: &IndexMap<String, String>, ) -> Self
Creates a new LabelSet from the given key and a set of global labels.
Sourcepub fn to_strings(&self) -> impl Iterator<Item = String> + '_
pub fn to_strings(&self) -> impl Iterator<Item = String> + '_
Returns an iterator that yields the labels in a sanitized and concatenated format.
Trait Implementations§
impl Eq for LabelSet
impl StructuralPartialEq for LabelSet
Auto Trait Implementations§
impl Freeze for LabelSet
impl RefUnwindSafe for LabelSet
impl Send for LabelSet
impl Sync for LabelSet
impl Unpin for LabelSet
impl UnwindSafe for LabelSet
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.