pub enum Keyword {
Show 29 variants
Sum,
Avg,
Count,
Min,
Max,
Group,
Stddev,
Stdvar,
Topk,
Bottomk,
CountValues,
Quantile,
Limitk,
LimitRatio,
And,
Or,
Unless,
Atan2,
Offset,
By,
Without,
On,
Ignoring,
GroupLeft,
GroupRight,
Bool,
Start,
End,
Step,
}Expand description
PromQL keywords
These keywords have special meaning in certain contexts but can also be used as identifiers (metric names, label names) in other contexts.
Variants§
Sum
Avg
Count
Min
Max
Group
Stddev
Stdvar
Topk
Bottomk
CountValues
Quantile
Limitk
LimitRatio
And
Or
Unless
Atan2
Offset
By
Without
On
Ignoring
GroupLeft
GroupRight
Bool
Start
End
Step
Implementations§
Source§impl Keyword
impl Keyword
Sourcepub fn is_aggregation(&self) -> bool
pub fn is_aggregation(&self) -> bool
Check if this keyword is an aggregation operator
Sourcepub fn is_aggregation_with_param(&self) -> bool
pub fn is_aggregation_with_param(&self) -> bool
Check if this keyword is an aggregation that takes a parameter
Sourcepub fn is_set_operator(&self) -> bool
pub fn is_set_operator(&self) -> bool
Check if this keyword is a set operator
Trait Implementations§
impl Copy for Keyword
impl Eq for Keyword
impl StructuralPartialEq for Keyword
Auto Trait Implementations§
impl Freeze for Keyword
impl RefUnwindSafe for Keyword
impl Send for Keyword
impl Sync for Keyword
impl Unpin for Keyword
impl UnwindSafe for Keyword
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