Enum rust_tdlib::types::ChatMemberStatus [−][src]
pub enum ChatMemberStatus { Administrator(ChatMemberStatusAdministrator), Banned(ChatMemberStatusBanned), Creator(ChatMemberStatusCreator), Left(ChatMemberStatusLeft), Member(ChatMemberStatusMember), Restricted(ChatMemberStatusRestricted), // some variants omitted }
Expand description
Provides information about the status of a member in a chat
Variants
Administrator(ChatMemberStatusAdministrator)
The user is a member of a chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, and ban unprivileged members. In supergroups and channels, there are more detailed options for administrator privileges
Banned(ChatMemberStatusBanned)
The user was banned (and hence is not a member of the chat). Implies the user can’t return to the chat or view messages
Creator(ChatMemberStatusCreator)
The user is the owner of a chat and has all the administrator privileges
Left(ChatMemberStatusLeft)
The user is not a chat member
Member(ChatMemberStatusMember)
The user is a member of a chat, without any additional privileges or restrictions
Restricted(ChatMemberStatusRestricted)
The user is under certain restrictions in the chat. Not supported in basic groups and channels
Implementations
Trait Implementations
Performs the conversion.
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 RefUnwindSafe for ChatMemberStatus
impl Send for ChatMemberStatus
impl Sync for ChatMemberStatus
impl Unpin for ChatMemberStatus
impl UnwindSafe for ChatMemberStatus
Blanket Implementations
Mutably borrows from an owned value. Read more