pub struct PluginAnalytics;Expand description
Analytics engine for trend analysis
Implementations§
Source§impl PluginAnalytics
impl PluginAnalytics
pub fn new() -> Self
pub async fn track_rating_event( &self, _plugin_id: &str, _rating: f32, ) -> Result<()>
pub async fn track_review_event(&self, _plugin_id: &str) -> Result<()>
pub async fn get_trend_data(&self, _plugin_id: &str) -> Result<Vec<f32>>
pub async fn get_trend_direction( &self, _plugin_id: &str, ) -> Result<TrendDirection>
pub async fn calculate_trend_score(&self, _plugin_id: &str) -> Result<f32>
pub async fn get_download_velocity(&self, _plugin_id: &str) -> Result<f32>
pub async fn get_last_update_time(&self, _plugin_id: &str) -> Result<SystemTime>
pub async fn get_trending_categories(&self) -> Result<Vec<PluginCategory>>
Trait Implementations§
Source§impl Clone for PluginAnalytics
impl Clone for PluginAnalytics
Source§fn clone(&self) -> PluginAnalytics
fn clone(&self) -> PluginAnalytics
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 PluginAnalytics
impl Debug for PluginAnalytics
Auto Trait Implementations§
impl Freeze for PluginAnalytics
impl RefUnwindSafe for PluginAnalytics
impl Send for PluginAnalytics
impl Sync for PluginAnalytics
impl Unpin for PluginAnalytics
impl UnwindSafe for PluginAnalytics
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<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