Enum prometheus_parse::LineInfo[][src]

pub enum LineInfo<'a> {
    Doc {
        metric_name: &'a str,
        doc: &'a str,
    },
    Type {
        metric_name: String,
        sample_type: SampleType,
    },
    Sample {
        metric_name: &'a str,
        labels: Option<&'a str>,
        value: &'a str,
        timestamp: Option<&'a str>,
    },
    Empty,
    Ignored,
}

Variants

Doc

Fields of Doc

metric_name: &'a strdoc: &'a str
Type

Fields of Type

metric_name: Stringsample_type: SampleType
Sample

Fields of Sample

metric_name: &'a strlabels: Option<&'a str>value: &'a strtimestamp: Option<&'a str>
Empty
Ignored

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.