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: ReturnKind
label_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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ReturnValue
impl Send for ReturnValue
impl Sync for ReturnValue
impl Unpin for ReturnValue
impl UnwindSafe for ReturnValue
Blanket Implementations
Mutably borrows from an owned value. Read more