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 PartialEq<LabelPair> for LabelPair
impl PartialEq<LabelPair> 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 moreimpl Eq for LabelPair
impl StructuralPartialEq for LabelPair
Auto Trait Implementations§
impl RefUnwindSafe for LabelPair
impl Send for LabelPair
impl Sync for LabelPair
impl Unpin for LabelPair
impl UnwindSafe for LabelPair
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