[][src]Enum prometheus_parser::LabelSetOp

pub enum LabelSetOp {
    NoOp,
    Clear,
    Append(HashSet<String>),
    Remove(HashSet<String>),
}

An operation on time series labels that might be performed by a particular (sub-)expression.

An expression may perform more than one operation

Variants

NoOp

Convenience op that does nothing

Clear

Clears all labels

Append(HashSet<String>)

Explicitly includes a set of labels in the output set

Remove(HashSet<String>)

Explicitly removes a set of labels from the output set

Methods

impl LabelSetOp[src]

pub fn noop(expression: Expression, span: Option<Span>) -> LabelSetOpTuple[src]

pub fn clear(expression: Expression, span: Option<Span>) -> LabelSetOpTuple[src]

pub fn append(
    expression: Expression,
    span: Option<Span>,
    labels: HashSet<String>
) -> LabelSetOpTuple
[src]

pub fn remove(
    expression: Expression,
    span: Option<Span>,
    labels: HashSet<String>
) -> LabelSetOpTuple
[src]

Trait Implementations

impl Clone for LabelSetOp[src]

impl Debug for LabelSetOp[src]

impl Eq for LabelSetOp[src]

impl PartialEq<LabelSetOp> for LabelSetOp[src]

impl StructuralEq for LabelSetOp[src]

impl StructuralPartialEq for LabelSetOp[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.