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§
Implementations§
Trait Implementations§
source§impl<'a> PartialEq for LineInfo<'a>
impl<'a> PartialEq for LineInfo<'a>
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§
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