pub struct LabelSet(pub BTreeMap<Key, u16>);Expand description
A set of labels mapping from the original metrics::Key to a unique identifier
and will be used to lookup what identifier to use when recording metrics events
Tuple Fields§
§0: BTreeMap<Key, u16>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LabelSet
impl<'de> Deserialize<'de> for LabelSet
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
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 UnsafeUnpin 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