Struct prometheus::proto::LabelPair
source · pub struct LabelPair { /* private fields */ }
Implementations§
source§impl LabelPair
impl LabelPair
pub fn new() -> LabelPair
👎Deprecated since 0.5.1: Use default()
pub fn clear_name(&mut self)
👎Deprecated since 0.5.1: This method is protobuf specific and will be removed in a future version
pub fn set_name(&mut self, v: String)
pub fn get_name(&self) -> &str
pub fn set_value(&mut self, v: String)
pub fn get_value(&self) -> &str
Trait Implementations§
source§impl Ord for LabelPair
impl Ord for LabelPair
source§impl PartialOrd<LabelPair> for LabelPair
impl PartialOrd<LabelPair> for LabelPair
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 more