Enum prometheus_parse::LineInfo
source · [−]pub enum LineInfo<'a> {
Doc {
metric_name: &'a str,
doc: &'a str,
},
Type {
metric_name: String,
metric_alias: Option<String>,
sample_type: SampleType,
},
Sample {
metric_name: &'a str,
labels: Option<&'a str>,
value: &'a str,
timestamp: Option<&'a str>,
},
Empty,
Ignored,
}
Variants
Doc
Type
Sample
Empty
Ignored
Implementations
Trait Implementations
impl<'a> Eq for LineInfo<'a>
impl<'a> StructuralEq for LineInfo<'a>
impl<'a> StructuralPartialEq for LineInfo<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for LineInfo<'a>
impl<'a> Send for LineInfo<'a>
impl<'a> Sync for LineInfo<'a>
impl<'a> Unpin for LineInfo<'a>
impl<'a> UnwindSafe for LineInfo<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more