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

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

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

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

The user is not a chat member

The user is a member of a chat, without any additional privileges or restrictions

The user is under certain restrictions in the chat. Not supported in basic groups and channels

Implementations

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

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

Performs the conversion.

Performs the conversion.

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)

recently added

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.