Enum rtdlib::types::CheckChatUsernameResult[][src]

pub enum CheckChatUsernameResult {
    CheckChatUsername(CheckChatUsername),
    Ok(CheckChatUsernameResultOk),
    PublicChatsTooMuch(CheckChatUsernameResultPublicChatsTooMuch),
    PublicGroupsUnavailable(CheckChatUsernameResultPublicGroupsUnavailable),
    UsernameInvalid(CheckChatUsernameResultUsernameInvalid),
    UsernameOccupied(CheckChatUsernameResultUsernameOccupied),
    // some variants omitted
}
Expand description

Represents result of checking whether a username can be set for a chat

Variants

CheckChatUsername

Checks whether a username can be set for a chat

Tuple Fields of CheckChatUsername

0: CheckChatUsername
Ok

The username can be set

Tuple Fields of Ok

0: CheckChatUsernameResultOk
PublicChatsTooMuch

The user has too much chats with username, one of them should be made private first

Tuple Fields of PublicChatsTooMuch

0: CheckChatUsernameResultPublicChatsTooMuch
PublicGroupsUnavailable

The user can’t be a member of a public supergroup

Tuple Fields of PublicGroupsUnavailable

0: CheckChatUsernameResultPublicGroupsUnavailable
UsernameInvalid

The username is invalid

Tuple Fields of UsernameInvalid

0: CheckChatUsernameResultUsernameInvalid
UsernameOccupied

The username is occupied

Tuple Fields of UsernameOccupied

0: CheckChatUsernameResultUsernameOccupied

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.