pub struct UserActivity {
pub timestamp: DateTime<Utc>,
pub user_id: String,
pub session_id: String,
pub action: UserAction,
pub query: Option<String>,
pub response_time_ms: f64,
pub success: bool,
pub ip_address: Option<String>,
pub user_agent: Option<String>,
}Expand description
User activity tracking
Fields§
§timestamp: DateTime<Utc>§user_id: String§session_id: String§action: UserAction§query: Option<String>§response_time_ms: f64§success: bool§ip_address: Option<String>§user_agent: Option<String>Trait Implementations§
Source§impl Clone for UserActivity
impl Clone for UserActivity
Source§fn clone(&self) -> UserActivity
fn clone(&self) -> UserActivity
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 UserActivity
impl Debug for UserActivity
Source§impl<'de> Deserialize<'de> for UserActivity
impl<'de> Deserialize<'de> for UserActivity
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
Auto Trait Implementations§
impl Freeze for UserActivity
impl RefUnwindSafe for UserActivity
impl Send for UserActivity
impl Sync for UserActivity
impl Unpin for UserActivity
impl UnwindSafe for UserActivity
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