Struct prometheus_parser::ReturnValue[][src]

pub struct ReturnValue {
    pub kind: ReturnKind,
    pub label_ops: Vec<LabelSetOpTuple>,
}
Expand description

A predicted return value from an expression

Fields

kind: ReturnKindlabel_ops: Vec<LabelSetOpTuple>

A stack of operations applied to original source labels

Implementations

Given a number of input label keys, returns a set of labels expected to be present on all returned time series

Note that more labels may be returned than were provided in the input set; expressions that explicitly select for or group on labels will

Determines the operation (plus expression and span) that caused the given label to be dropped. If the label is never dropped, returns None.

This also accounts for expressions that drop a label and re-add it later, for instance with an aggregation clause.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.