pub struct Metrics {
pub unique_visitors: i64,
pub pageviews: i64,
pub sessions: i64,
pub bounce_rate: i64,
pub avg_seconds: i64,
pub top_pages: Vec<Bucket>,
pub top_referrers: Vec<Bucket>,
pub countries: Vec<Bucket>,
pub devices: Vec<Bucket>,
pub series: Vec<DayPoint>,
}Expand description
Everything the dashboard renders for a date range (except active_now,
which the handler fills from the in-memory presence gauge).
Fields§
§unique_visitors: i64§pageviews: i64§sessions: i64§bounce_rate: i64§avg_seconds: i64§top_pages: Vec<Bucket>§top_referrers: Vec<Bucket>§countries: Vec<Bucket>§devices: Vec<Bucket>§series: Vec<DayPoint>Trait Implementations§
Auto Trait Implementations§
impl Forget for Metrics
impl Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnsafeUnpin for Metrics
impl UnwindSafe for Metrics
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 moreCreates a shared type from an unshared type.