pub enum ChatMemberStatus {
    Creator(ChatMemberStatusCreator),
    Administrator(ChatMemberStatusAdministrator),
    Member,
    Restricted(ChatMemberStatusRestricted),
    Left,
    Banned(ChatMemberStatusBanned),
}

Variants

Creator(ChatMemberStatusCreator)

The user is the owner of the chat and has all the administrator privileges

Administrator(ChatMemberStatusAdministrator)

The user is a member of the chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, ban unprivileged members, and manage video chats. In supergroups and channels, there are more detailed options for administrator privileges

Member

The user is a member of the 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

Left

The user or the chat is not a chat member

Banned(ChatMemberStatusBanned)

The user or the chat was banned (and hence is not a member of the chat). Implies the user can’t return to the chat, view messages, or be used as a participant identifier to join a video chat of the chat

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.