pub enum UserStatus {
Empty,
Online(UserStatusOnline),
Offline(UserStatusOffline),
Recently(UserStatusRecently),
LastWeek(UserStatusLastWeek),
LastMonth(UserStatusLastMonth),
}Expand description
Variants§
Empty
Online(UserStatusOnline)
Offline(UserStatusOffline)
Recently(UserStatusRecently)
LastWeek(UserStatusLastWeek)
LastMonth(UserStatusLastMonth)
Trait Implementations§
Source§impl Clone for UserStatus
impl Clone for UserStatus
Source§fn clone(&self) -> UserStatus
fn clone(&self) -> UserStatus
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 UserStatus
impl Debug for UserStatus
Source§impl Deserializable for UserStatus
impl Deserializable for UserStatus
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<UserStatusEmpty> for UserStatus
impl From<UserStatusEmpty> for UserStatus
Source§fn from(_x: UserStatusEmpty) -> Self
fn from(_x: UserStatusEmpty) -> Self
Converts to this type from the input type.
Source§impl From<UserStatusLastMonth> for UserStatus
impl From<UserStatusLastMonth> for UserStatus
Source§fn from(x: UserStatusLastMonth) -> Self
fn from(x: UserStatusLastMonth) -> Self
Converts to this type from the input type.
Source§impl From<UserStatusLastWeek> for UserStatus
impl From<UserStatusLastWeek> for UserStatus
Source§fn from(x: UserStatusLastWeek) -> Self
fn from(x: UserStatusLastWeek) -> Self
Converts to this type from the input type.
Source§impl From<UserStatusOffline> for UserStatus
impl From<UserStatusOffline> for UserStatus
Source§fn from(x: UserStatusOffline) -> Self
fn from(x: UserStatusOffline) -> Self
Converts to this type from the input type.
Source§impl From<UserStatusOnline> for UserStatus
impl From<UserStatusOnline> for UserStatus
Source§fn from(x: UserStatusOnline) -> Self
fn from(x: UserStatusOnline) -> Self
Converts to this type from the input type.
Source§impl From<UserStatusRecently> for UserStatus
impl From<UserStatusRecently> for UserStatus
Source§fn from(x: UserStatusRecently) -> Self
fn from(x: UserStatusRecently) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UserStatus
impl PartialEq for UserStatus
Source§impl Serializable for UserStatus
impl Serializable for UserStatus
Source§impl TryFrom<UserStatus> for UserStatusLastMonth
impl TryFrom<UserStatus> for UserStatusLastMonth
Source§type Error = UserStatus
type Error = UserStatus
The type returned in the event of a conversion error.
Source§impl TryFrom<UserStatus> for UserStatusLastWeek
impl TryFrom<UserStatus> for UserStatusLastWeek
Source§type Error = UserStatus
type Error = UserStatus
The type returned in the event of a conversion error.
Source§impl TryFrom<UserStatus> for UserStatusOffline
impl TryFrom<UserStatus> for UserStatusOffline
Source§type Error = UserStatus
type Error = UserStatus
The type returned in the event of a conversion error.
Source§impl TryFrom<UserStatus> for UserStatusOnline
impl TryFrom<UserStatus> for UserStatusOnline
Source§type Error = UserStatus
type Error = UserStatus
The type returned in the event of a conversion error.
Source§impl TryFrom<UserStatus> for UserStatusRecently
impl TryFrom<UserStatus> for UserStatusRecently
Source§type Error = UserStatus
type Error = UserStatus
The type returned in the event of a conversion error.
impl StructuralPartialEq for UserStatus
Auto Trait Implementations§
impl Freeze for UserStatus
impl RefUnwindSafe for UserStatus
impl Send for UserStatus
impl Sync for UserStatus
impl Unpin for UserStatus
impl UnsafeUnpin for UserStatus
impl UnwindSafe for UserStatus
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