pub struct UserActivity {
pub id: String,
pub user_id: u64,
pub activity_type: String,
pub timestamp: DateTime<Utc>,
pub metadata: HashMap<String, String>,
}Fields§
§id: StringUnique identifier for the activity
user_id: u64User ID who performed the activity
activity_type: StringType of activity (e.g., “login”, “purchase”, “view”)
timestamp: DateTime<Utc>Timestamp when the activity occurred
metadata: HashMap<String, String>Additional metadata about the activity
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
Source§impl From<MediaStreamEvent> for UserActivity
impl From<MediaStreamEvent> for UserActivity
Source§fn from(event: MediaStreamEvent) -> Self
fn from(event: MediaStreamEvent) -> Self
Converts to this type from the input type.
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