[−][src]Struct prometheus_parser::ReturnValue
A predicted return value from an expression
Fields
kind: ReturnKind
label_ops: Vec<LabelSetOpTuple>
A stack of operations applied to original source labels
Methods
impl ReturnValue
[src]
pub fn unknown<S>(message: S, expression: Expression) -> Self where
S: Into<String>,
[src]
S: Into<String>,
pub fn label_op(&mut self, op: LabelSetOpTuple) -> &mut Self
[src]
pub fn passthrough(&self, input_labels: &[&str]) -> HashSet<String>
[src]
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
pub fn drops(&self, label: &str) -> Option<&LabelSetOpTuple>
[src]
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
impl Clone for ReturnValue
[src]
fn clone(&self) -> ReturnValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ReturnValue
[src]
impl PartialEq<ReturnValue> for ReturnValue
[src]
fn eq(&self, other: &ReturnValue) -> bool
[src]
fn ne(&self, other: &ReturnValue) -> bool
[src]
impl StructuralPartialEq for ReturnValue
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,