Enum rust_tdlib::types::UserStatus
source · pub enum UserStatus {
Empty(UserStatusEmpty),
LastMonth(UserStatusLastMonth),
LastWeek(UserStatusLastWeek),
Offline(UserStatusOffline),
Online(UserStatusOnline),
Recently(UserStatusRecently),
// some variants omitted
}
Expand description
Describes the last time the user was online
Variants§
Empty(UserStatusEmpty)
The user status was never changed
LastMonth(UserStatusLastMonth)
The user is offline, but was online last month
LastWeek(UserStatusLastWeek)
The user is offline, but was online last week
Offline(UserStatusOffline)
The user is offline
Online(UserStatusOnline)
The user is online
Recently(UserStatusRecently)
The user was online recently
Implementations§
Trait Implementations§
source§impl AsRef<UserStatus> for UserStatus
impl AsRef<UserStatus> for UserStatus
source§fn as_ref(&self) -> &UserStatus
fn as_ref(&self) -> &UserStatus
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for UserStatus
impl Clone for UserStatus
source§fn clone(&self) -> UserStatus
fn clone(&self) -> UserStatus
Returns a copy 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 Default for UserStatus
impl Default for UserStatus
source§fn default() -> UserStatus
fn default() -> UserStatus
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UserStatus
impl<'de> Deserialize<'de> for UserStatus
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