pub enum OnlineStatus {
Online,
Recently,
LastWeek,
LastMonth,
LongTimeAgo,
Offline,
}Expand description
在线状态枚举
Variants§
Online
在线(最近3分钟活跃)
Recently
最近在线(1小时内)
LastWeek
上周在线(7天内)
LastMonth
上月在线(30天内)
LongTimeAgo
很久之前
Offline
离线(用户主动设置)
Implementations§
Source§impl OnlineStatus
impl OnlineStatus
Trait Implementations§
Source§impl Clone for OnlineStatus
impl Clone for OnlineStatus
Source§fn clone(&self) -> OnlineStatus
fn clone(&self) -> OnlineStatus
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 OnlineStatus
impl Debug for OnlineStatus
Source§impl<'de> Deserialize<'de> for OnlineStatus
impl<'de> Deserialize<'de> for OnlineStatus
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 PartialEq for OnlineStatus
impl PartialEq for OnlineStatus
Source§impl Serialize for OnlineStatus
impl Serialize for OnlineStatus
impl Eq for OnlineStatus
impl StructuralPartialEq for OnlineStatus
Auto Trait Implementations§
impl Freeze for OnlineStatus
impl RefUnwindSafe for OnlineStatus
impl Send for OnlineStatus
impl Sync for OnlineStatus
impl Unpin for OnlineStatus
impl UnsafeUnpin for OnlineStatus
impl UnwindSafe for OnlineStatus
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