pub struct Label<'a> {
pub key: &'a str,
pub str: &'a str,
pub num: i64,
pub num_unit: &'a str,
}Fields§
§key: &'a str§str: &'a strAt most one of the following must be present
num: i64§num_unit: &'a strShould only be present when num is present. Specifies the units of num. Use arbitrary string (for example, “requests”) as a custom count unit. If no unit is specified, consumer may apply heuristic to deduce the unit. Consumers may also interpret units like “bytes” and “kilobytes” as memory units and units like “seconds” and “nanoseconds” as time units, and apply appropriate unit conversions to these.
Implementations§
Trait Implementations§
Source§impl<'a> Ord for Label<'a>
impl<'a> Ord for Label<'a>
Source§impl<'a> PartialOrd for Label<'a>
impl<'a> PartialOrd for Label<'a>
impl<'a> Copy for Label<'a>
impl<'a> Eq for Label<'a>
impl<'a> StructuralPartialEq for Label<'a>
Auto Trait Implementations§
impl<'a> Freeze for Label<'a>
impl<'a> RefUnwindSafe for Label<'a>
impl<'a> Send for Label<'a>
impl<'a> Sync for Label<'a>
impl<'a> Unpin for Label<'a>
impl<'a> UnwindSafe for Label<'a>
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.