[−][src]Enum prometheus_parser::LabelSetOp
An operation on time series labels that might be performed by a particular (sub-)expression.
An expression may perform more than one operation
Variants
Convenience op that does nothing
Clears all labels
Explicitly includes a set of labels in the output set
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]
expression: Expression,
span: Option<Span>,
labels: HashSet<String>
) -> LabelSetOpTuple
pub fn remove(
expression: Expression,
span: Option<Span>,
labels: HashSet<String>
) -> LabelSetOpTuple
[src]
expression: Expression,
span: Option<Span>,
labels: HashSet<String>
) -> LabelSetOpTuple
Trait Implementations
impl Clone for LabelSetOp
[src]
fn clone(&self) -> LabelSetOp
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LabelSetOp
[src]
impl Eq for LabelSetOp
[src]
impl PartialEq<LabelSetOp> for LabelSetOp
[src]
fn eq(&self, other: &LabelSetOp) -> bool
[src]
fn ne(&self, other: &LabelSetOp) -> bool
[src]
impl StructuralEq for LabelSetOp
[src]
impl StructuralPartialEq for LabelSetOp
[src]
Auto Trait Implementations
impl RefUnwindSafe for LabelSetOp
impl Send for LabelSetOp
impl Sync for LabelSetOp
impl Unpin for LabelSetOp
impl UnwindSafe for LabelSetOp
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>,