Enum prometheus_parse::SampleType
source · pub enum SampleType {
Counter,
Gauge,
Histogram,
Summary,
Untyped,
}Variants§
Implementations§
source§impl SampleType
impl SampleType
pub fn parse(s: &str) -> SampleType
Trait Implementations§
source§impl Clone for SampleType
impl Clone for SampleType
source§fn clone(&self) -> SampleType
fn clone(&self) -> SampleType
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 SampleType
impl Debug for SampleType
source§impl PartialEq<SampleType> for SampleType
impl PartialEq<SampleType> for SampleType
source§fn eq(&self, other: &SampleType) -> bool
fn eq(&self, other: &SampleType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.