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 for LabelPair
impl PartialEq for LabelPair
source§impl PartialOrd for LabelPair
impl PartialOrd 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 Freeze for LabelPair
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)