pub struct AnalyticsEventBuilder;Implementations§
Source§impl AnalyticsEventBuilder
impl AnalyticsEventBuilder
pub fn session_started(payload: SessionStartedPayload) -> AnalyticsEvent
pub fn session_ended( session_id: SessionId, duration_ms: i64, page_count: i64, request_count: i64, ) -> AnalyticsEvent
pub fn page_view( session_id: SessionId, user_id: Option<UserId>, page_url: String, content_id: Option<ContentId>, referrer: Option<String>, ) -> AnalyticsEvent
pub fn engagement_update( session_id: SessionId, 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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