pub struct AnalyticsEventBuilder;Implementations§
Source§impl AnalyticsEventBuilder
impl AnalyticsEventBuilder
pub fn session_started(payload: SessionStartedPayload) -> AnalyticsEvent
pub fn session_ended( session_id: String, duration_ms: i64, page_count: i64, request_count: i64, ) -> AnalyticsEvent
pub fn page_view( session_id: String, user_id: Option<String>, page_url: String, content_id: Option<String>, referrer: Option<String>, ) -> AnalyticsEvent
pub fn engagement_update( session_id: String, page_url: String, scroll_depth: i32, time_on_page_ms: i64, click_count: i32, ) -> AnalyticsEvent
pub fn realtime_stats( active_sessions: i64, active_users: i64, requests_per_minute: i64, page_views_last_5m: i64, bot_requests_last_5m: i64, ) -> AnalyticsEvent
pub fn heartbeat() -> AnalyticsEvent
Trait Implementations§
Source§impl Clone for AnalyticsEventBuilder
impl Clone for AnalyticsEventBuilder
Source§fn clone(&self) -> AnalyticsEventBuilder
fn clone(&self) -> AnalyticsEventBuilder
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 AnalyticsEventBuilder
impl Debug for AnalyticsEventBuilder
impl Copy for AnalyticsEventBuilder
Auto Trait Implementations§
impl Freeze for AnalyticsEventBuilder
impl RefUnwindSafe for AnalyticsEventBuilder
impl Send for AnalyticsEventBuilder
impl Sync for AnalyticsEventBuilder
impl Unpin for AnalyticsEventBuilder
impl UnwindSafe for AnalyticsEventBuilder
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