pub struct CoreStatsRepository { /* private fields */ }Implementations§
Source§impl CoreStatsRepository
impl CoreStatsRepository
pub async fn get_activity_trend(&self, days: i32) -> Result<Vec<ActivityTrend>>
pub async fn get_recent_conversations( &self, limit: i64, ) -> Result<Vec<RecentConversation>>
pub async fn get_content_stats(&self, limit: i64) -> Result<Vec<ContentStat>>
Source§impl CoreStatsRepository
impl CoreStatsRepository
pub async fn get_browser_breakdown( &self, limit: i64, ) -> Result<Vec<BrowserBreakdown>>
pub async fn get_device_breakdown( &self, limit: i64, ) -> Result<Vec<DeviceBreakdown>>
pub async fn get_geographic_breakdown( &self, limit: i64, ) -> Result<Vec<GeographicBreakdown>>
pub async fn get_bot_traffic_stats(&self) -> Result<BotTrafficStats>
Source§impl CoreStatsRepository
impl CoreStatsRepository
pub async fn get_platform_overview(&self) -> Result<PlatformOverview>
pub async fn get_cost_overview(&self) -> Result<CostOverview>
pub async fn get_user_metrics_with_trends( &self, ) -> Result<UserMetricsWithTrends>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoreStatsRepository
impl !RefUnwindSafe for CoreStatsRepository
impl Send for CoreStatsRepository
impl Sync for CoreStatsRepository
impl Unpin for CoreStatsRepository
impl !UnwindSafe for CoreStatsRepository
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