pub struct OnlineUser {
pub login_id: String,
pub token: String,
pub device: String,
pub connect_time: DateTime<Utc>,
pub last_activity: DateTime<Utc>,
pub metadata: HashMap<String, String>,
}Expand description
Online user information 在线用户信息
Represents an active user connection with device and activity tracking 表示具有设备和活动跟踪的活跃用户连接
Fields§
§login_id: StringUser login ID | 用户登录 ID
token: StringAuthentication token | 认证 Token
device: StringDevice identifier (e.g., “web”, “mobile”, “ios”, “android”) | 设备标识
connect_time: DateTime<Utc>Connection establishment time | 连接建立时间
last_activity: DateTime<Utc>Last activity timestamp | 最后活跃时间戳
metadata: HashMap<String, String>Custom metadata for this connection | 该连接的自定义元数据
Trait Implementations§
Source§impl Clone for OnlineUser
impl Clone for OnlineUser
Source§fn clone(&self) -> OnlineUser
fn clone(&self) -> OnlineUser
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 moreAuto Trait Implementations§
impl Freeze for OnlineUser
impl RefUnwindSafe for OnlineUser
impl Send for OnlineUser
impl Sync for OnlineUser
impl Unpin for OnlineUser
impl UnwindSafe for OnlineUser
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