Enum promql_parser::parser::ast::LabelModifier
source · pub enum LabelModifier {
Include(Labels),
Exclude(Labels),
}
Expand description
LabelModifier acts as
Aggregation Modifier
- Exclude means
ignoring
- Include means
on
Vector Match Modifier
- Exclude means
without
removes the listed labels from the result vector, while all other labels are preserved in the output. - Include means
by
does the opposite and drops labels that are not listed in the by clause, even if their label values are identical between all elements of the vector.
if empty listed labels, meaning no grouping
Variants§
Implementations§
Trait Implementations§
source§impl Clone for LabelModifier
impl Clone for LabelModifier
source§fn clone(&self) -> LabelModifier
fn clone(&self) -> LabelModifier
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LabelModifier
impl Debug for LabelModifier
source§impl PartialEq<LabelModifier> for LabelModifier
impl PartialEq<LabelModifier> for LabelModifier
source§fn eq(&self, other: &LabelModifier) -> bool
fn eq(&self, other: &LabelModifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LabelModifier
impl StructuralEq for LabelModifier
impl StructuralPartialEq for LabelModifier
Auto Trait Implementations§
impl RefUnwindSafe for LabelModifier
impl Send for LabelModifier
impl Sync for LabelModifier
impl Unpin for LabelModifier
impl UnwindSafe for LabelModifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.