pub struct Trend<M> { /* private fields */ }Expand description
A Series from a model’s rows: how many (count), or the sum or
average of a column, per day, week or month of a Period (its
bucket), by the moment in column (a DateTime
column such as created_at). The query’s conditions apply
(Order::where_eq("status", "paid")); days are cut in APP_TIMEZONE, at
its offset at the end of the period, and weeks run Monday to Sunday in
those local days (labelled by their Monday).
Implementations§
Auto Trait Implementations§
impl<M> Freeze for Trend<M>
impl<M> RefUnwindSafe for Trend<M>where
Query<M>: RefUnwindSafe,
impl<M> Send for Trend<M>
impl<M> Sync for Trend<M>
impl<M> Unpin for Trend<M>
impl<M> UnsafeUnpin for Trend<M>where
Query<M>: UnsafeUnpin,
impl<M> UnwindSafe for Trend<M>where
Query<M>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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