[][src]Enum rust_tdlib::types::CheckChatUsernameResult

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

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

Variants

CheckChatUsername(CheckChatUsername)

Checks whether a username can be set for a chat

The username can be set

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

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

The username is invalid

The username is occupied

Implementations

impl CheckChatUsernameResult[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

Trait Implementations

impl AsRef<CheckChatUsernameResult> for CheckChatUsernameResult[src]

impl Clone for CheckChatUsernameResult[src]

impl Debug for CheckChatUsernameResult[src]

impl Default for CheckChatUsernameResult[src]

impl<'de> Deserialize<'de> for CheckChatUsernameResult[src]

impl RObject for CheckChatUsernameResult[src]

impl Serialize for CheckChatUsernameResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,