pub struct QueryBuilder<'a> { /* private fields */ }Expand description
Builder for constructing queries
Implementations§
Source§impl<'a> QueryBuilder<'a>
impl<'a> QueryBuilder<'a>
Sourcepub fn aggregate(self, agg: Aggregation) -> Self
pub fn aggregate(self, agg: Aggregation) -> Self
Apply aggregation
Sourcepub fn window(self, spec: WindowSpec) -> Self
pub fn window(self, spec: WindowSpec) -> Self
Apply window function
Sourcepub fn resample(self, bucket: ResampleBucket) -> Self
pub fn resample(self, bucket: ResampleBucket) -> Self
Apply resampling
Sourcepub fn interpolate(self, method: InterpolateMethod) -> Self
pub fn interpolate(self, method: InterpolateMethod) -> Self
Apply interpolation
Sourcepub fn descending(self) -> Self
pub fn descending(self) -> Self
Order results descending (newest first)
Sourcepub fn execute(self) -> TsdbResult<QueryResult>
pub fn execute(self) -> TsdbResult<QueryResult>
Execute the query
Auto Trait Implementations§
impl<'a> Freeze for QueryBuilder<'a>
impl<'a> RefUnwindSafe for QueryBuilder<'a>
impl<'a> Send for QueryBuilder<'a>
impl<'a> Sync for QueryBuilder<'a>
impl<'a> Unpin for QueryBuilder<'a>
impl<'a> UnwindSafe for QueryBuilder<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more