Enum rtdlib::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

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

Tuple Fields of Administrator

0: ChatMemberStatusAdministrator
Banned

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

Tuple Fields of Banned

0: ChatMemberStatusBanned
Creator

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

Tuple Fields of Creator

0: ChatMemberStatusCreator
Left

The user is not a chat member

Tuple Fields of Left

0: ChatMemberStatusLeft
Member

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

Tuple Fields of Member

0: ChatMemberStatusMember
Restricted

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

Tuple Fields of Restricted

0: ChatMemberStatusRestricted

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

Return td type to json string

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.