Struct promql::ParserOptions
source · pub struct ParserOptions { /* private fields */ }
Expand description
Options that allow or disallow certain query language features.
Implementations§
source§impl ParserOptions
impl ParserOptions
sourcepub fn new() -> ParserOptionsBuilder<(), (), (), (), (), (), ()>
pub fn new() -> ParserOptionsBuilder<(), (), (), (), (), (), ()>
Creating a builder.
§Optional Fields
§allow_dots
- Type:
bool
- Default:
false
Allow dots in metric names (e.g. threads.busy{instance="..."}
).
This option is usually used in systems that have metrics carried over from other monitoring systems like Graphite.
§comments
- Type:
bool
- Default:
true
Allow #
-prefixed comments
§compound_intervals
- Type:
bool
- Default:
false
Allow compound interval literals (e.g. offset 1h30m
)
§fractional_intervals
- Type:
bool
- Default:
false
Allow decimal fractions in intervals (e.g. offset 0.5d
)
§ms_duration
- Type:
bool
- Default:
false
Allow ms
as an interval suffix
§negative_offsets
- Type:
bool
- Default:
false
Allow negative offsets
§recursion_limit
- Type:
usize
- Default:
64
How many Node
-producing expressions and unary operators can be nested into each other
Trait Implementations§
source§impl Clone for ParserOptions
impl Clone for ParserOptions
source§fn clone(&self) -> ParserOptions
fn clone(&self) -> ParserOptions
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 Default for ParserOptions
impl Default for ParserOptions
impl Copy for ParserOptions
Auto Trait Implementations§
impl RefUnwindSafe for ParserOptions
impl Send for ParserOptions
impl Sync for ParserOptions
impl Unpin for ParserOptions
impl UnwindSafe for ParserOptions
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