pub struct AnalyticsSession {Show 25 fields
pub session_id: SessionId,
pub user_id: Option<UserId>,
pub fingerprint_hash: Option<String>,
pub ip_address: Option<String>,
pub user_agent: Option<String>,
pub device_type: Option<String>,
pub browser: Option<String>,
pub os: Option<String>,
pub country: Option<String>,
pub city: Option<String>,
pub referrer_url: Option<String>,
pub utm_source: Option<String>,
pub utm_medium: Option<String>,
pub utm_campaign: Option<String>,
pub is_bot: bool,
pub is_scanner: Option<bool>,
pub is_behavioral_bot: Option<bool>,
pub behavioral_bot_reason: Option<String>,
pub started_at: Option<DateTime<Utc>>,
pub last_activity_at: Option<DateTime<Utc>>,
pub ended_at: Option<DateTime<Utc>>,
pub request_count: Option<i32>,
pub task_count: Option<i32>,
pub ai_request_count: Option<i32>,
pub message_count: Option<i32>,
}Fields§
§session_id: SessionId§user_id: Option<UserId>§fingerprint_hash: Option<String>§ip_address: Option<String>§user_agent: Option<String>§device_type: Option<String>§browser: Option<String>§os: Option<String>§country: Option<String>§city: Option<String>§referrer_url: Option<String>§utm_source: Option<String>§utm_medium: Option<String>§utm_campaign: Option<String>§is_bot: bool§is_scanner: Option<bool>§is_behavioral_bot: Option<bool>§behavioral_bot_reason: Option<String>§started_at: Option<DateTime<Utc>>§last_activity_at: Option<DateTime<Utc>>§ended_at: Option<DateTime<Utc>>§request_count: Option<i32>§task_count: Option<i32>§ai_request_count: Option<i32>§message_count: Option<i32>Trait Implementations§
Source§impl Clone for AnalyticsSession
impl Clone for AnalyticsSession
Source§fn clone(&self) -> AnalyticsSession
fn clone(&self) -> AnalyticsSession
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 AnalyticsSession
impl Debug for AnalyticsSession
Source§impl<'de> Deserialize<'de> for AnalyticsSession
impl<'de> Deserialize<'de> for AnalyticsSession
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a, R: Row> FromRow<'a, R> for AnalyticsSessionwhere
&'a str: ColumnIndex<R>,
SessionId: Decode<'a, R::Database> + Type<R::Database>,
Option<UserId>: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
Option<bool>: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
Option<i32>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for AnalyticsSessionwhere
&'a str: ColumnIndex<R>,
SessionId: Decode<'a, R::Database> + Type<R::Database>,
Option<UserId>: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
Option<bool>: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
Option<i32>: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for AnalyticsSession
impl RefUnwindSafe for AnalyticsSession
impl Send for AnalyticsSession
impl Sync for AnalyticsSession
impl Unpin for AnalyticsSession
impl UnsafeUnpin for AnalyticsSession
impl UnwindSafe for AnalyticsSession
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> 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