Struct prometheus::proto::MetricFamily
source · pub struct MetricFamily { /* private fields */ }
Implementations§
source§impl MetricFamily
impl MetricFamily
pub fn new() -> MetricFamily
👎Deprecated since 0.5.1: Use default()
pub fn clear_name(&mut self)
pub fn set_name(&mut self, v: String)
pub fn get_name(&self) -> &str
pub fn set_help(&mut self, v: String)
pub fn get_help(&self) -> &str
pub fn set_field_type(&mut self, v: MetricType)
pub fn get_field_type(&self) -> MetricType
pub fn clear_metric(&mut self)
👎Deprecated since 0.5.1: This method is protobuf specific and will be removed in a future version
pub fn set_metric(&mut self, v: Vec<Metric>)
pub fn mut_metric(&mut self) -> &mut Vec<Metric>
pub fn take_metric(&mut self) -> Vec<Metric>
pub fn get_metric(&self) -> &[Metric]
Trait Implementations§
source§impl Clone for MetricFamily
impl Clone for MetricFamily
source§fn clone(&self) -> MetricFamily
fn clone(&self) -> MetricFamily
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MetricFamily
impl Debug for MetricFamily
source§impl Default for MetricFamily
impl Default for MetricFamily
source§fn default() -> MetricFamily
fn default() -> MetricFamily
Returns the “default value” for a type. Read more
source§impl PartialEq<MetricFamily> for MetricFamily
impl PartialEq<MetricFamily> for MetricFamily
source§fn eq(&self, other: &MetricFamily) -> bool
fn eq(&self, other: &MetricFamily) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricFamily
Auto Trait Implementations§
impl RefUnwindSafe for MetricFamily
impl Send for MetricFamily
impl Sync for MetricFamily
impl Unpin for MetricFamily
impl UnwindSafe for MetricFamily
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