pub struct OnlineStatusChangeNotification {
pub user_id: u64,
pub old_status: OnlineStatus,
pub new_status: OnlineStatus,
pub last_seen: i64,
pub timestamp: i64,
}Expand description
在线状态变化通知(服务端主动推送)
Fields§
§user_id: u64用户ID
old_status: OnlineStatus旧状态
new_status: OnlineStatus新状态
last_seen: i64最后活跃时间
timestamp: i64时间戳
Trait Implementations§
Source§impl Clone for OnlineStatusChangeNotification
impl Clone for OnlineStatusChangeNotification
Source§fn clone(&self) -> OnlineStatusChangeNotification
fn clone(&self) -> OnlineStatusChangeNotification
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<'de> Deserialize<'de> for OnlineStatusChangeNotification
impl<'de> Deserialize<'de> for OnlineStatusChangeNotification
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 OnlineStatusChangeNotification
impl RefUnwindSafe for OnlineStatusChangeNotification
impl Send for OnlineStatusChangeNotification
impl Sync for OnlineStatusChangeNotification
impl Unpin for OnlineStatusChangeNotification
impl UnsafeUnpin for OnlineStatusChangeNotification
impl UnwindSafe for OnlineStatusChangeNotification
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