pub struct AnalyticsEvent {
pub id: String,
pub event_type: String,
pub event_category: String,
pub severity: String,
pub user_id: UserId,
pub session_id: Option<SessionId>,
pub message: Option<String>,
pub metadata: Option<String>,
pub timestamp: DateTime<Utc>,
}Fields§
§id: String§event_type: String§event_category: String§severity: String§user_id: UserId§session_id: Option<SessionId>§message: Option<String>§metadata: Option<String>§timestamp: DateTime<Utc>Trait Implementations§
Source§impl Clone for AnalyticsEvent
impl Clone for AnalyticsEvent
Source§fn clone(&self) -> AnalyticsEvent
fn clone(&self) -> AnalyticsEvent
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 AnalyticsEvent
impl Debug for AnalyticsEvent
Source§impl<'de> Deserialize<'de> for AnalyticsEvent
impl<'de> Deserialize<'de> for AnalyticsEvent
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 AnalyticsEventwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
UserId: Decode<'a, R::Database> + Type<R::Database>,
Option<SessionId>: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for AnalyticsEventwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
UserId: Decode<'a, R::Database> + Type<R::Database>,
Option<SessionId>: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for AnalyticsEvent
impl RefUnwindSafe for AnalyticsEvent
impl Send for AnalyticsEvent
impl Sync for AnalyticsEvent
impl Unpin for AnalyticsEvent
impl UnsafeUnpin for AnalyticsEvent
impl UnwindSafe for AnalyticsEvent
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