pub struct SubqueryExpr {
pub expr: Box<Expr>,
pub offset: Option<Offset>,
pub at: Option<AtModifier>,
pub range: Duration,
pub step: Option<Duration>,
}
Expand description
Grammar:
<instant_query> '[' <range> ':' [<resolution>] ']' [ @ <float_literal> ] [ offset <duration> ]
Fields§
§expr: Box<Expr>
§offset: Option<Offset>
§at: Option<AtModifier>
§range: Duration
§step: Option<Duration>
Default is the global evaluation interval.
Trait Implementations§
Source§impl Clone for SubqueryExpr
impl Clone for SubqueryExpr
Source§fn clone(&self) -> SubqueryExpr
fn clone(&self) -> SubqueryExpr
Returns a duplicate 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 SubqueryExpr
impl Debug for SubqueryExpr
Source§impl Display for SubqueryExpr
impl Display for SubqueryExpr
Source§impl PartialEq for SubqueryExpr
impl PartialEq for SubqueryExpr
Source§impl Prettier for SubqueryExpr
impl Prettier for SubqueryExpr
Source§fn pretty(&self, level: usize, max: usize) -> String
fn pretty(&self, level: usize, max: usize) -> String
max param is short for max_characters_per_line.
Source§fn format(&self, level: usize, _max: usize) -> String
fn format(&self, level: usize, _max: usize) -> String
override format if expr needs to be split into multiple lines
Source§fn needs_split(&self, max: usize) -> bool
fn needs_split(&self, max: usize) -> bool
override needs_split to return false, in order not to split multiple lines
impl Eq for SubqueryExpr
impl StructuralPartialEq for SubqueryExpr
Auto Trait Implementations§
impl Freeze for SubqueryExpr
impl !RefUnwindSafe for SubqueryExpr
impl Send for SubqueryExpr
impl Sync for SubqueryExpr
impl Unpin for SubqueryExpr
impl !UnwindSafe for SubqueryExpr
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.