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§
impl<'a> Eq for LineInfo<'a>
impl<'a> StructuralPartialEq for LineInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for LineInfo<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more