pub struct AnalyticsApi { /* private fields */ }Expand description
数据分析 API 门面
Implementations§
Source§impl AnalyticsApi
impl AnalyticsApi
pub fn new(client: MpClient) -> AnalyticsApi
pub fn client(&self) -> &MpClient
pub async fn daily_retain( &self, range: &DateRange, ) -> Result<RetainResponse, MpError>
pub async fn weekly_retain( &self, range: &DateRange, ) -> Result<RetainResponse, MpError>
pub async fn monthly_retain( &self, range: &DateRange, ) -> Result<RetainResponse, MpError>
pub async fn daily_visit_trend( &self, range: &DateRange, ) -> Result<VisitTrendResponse, MpError>
pub async fn weekly_visit_trend( &self, range: &DateRange, ) -> Result<VisitTrendResponse, MpError>
pub async fn monthly_visit_trend( &self, range: &DateRange, ) -> Result<VisitTrendResponse, MpError>
pub async fn daily_summary( &self, range: &DateRange, ) -> Result<DailySummaryResponse, MpError>
pub async fn visit_page( &self, range: &DateRange, ) -> Result<VisitPageResponse, MpError>
pub async fn user_portrait( &self, range: &DateRange, ) -> Result<UserPortraitResponse, MpError>
pub async fn visit_distribution( &self, range: &DateRange, ) -> Result<VisitDistributionResponse, MpError>
pub async fn performance_boot( &self, req: &PerformanceRequest, ) -> Result<PerformanceResponse, MpError>
Trait Implementations§
Source§impl Clone for AnalyticsApi
impl Clone for AnalyticsApi
Source§fn clone(&self) -> AnalyticsApi
fn clone(&self) -> AnalyticsApi
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for AnalyticsApi
impl !UnwindSafe for AnalyticsApi
impl Freeze for AnalyticsApi
impl Send for AnalyticsApi
impl Sync for AnalyticsApi
impl Unpin for AnalyticsApi
impl UnsafeUnpin for AnalyticsApi
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