pub enum CheckChatUsernameResult {
Ok,
UsernameInvalid,
UsernameOccupied,
UsernamePurchasable,
PublicChatsTooMany,
PublicGroupsUnavailable,
}Variants§
Ok
The username can be set
UsernameInvalid
The username is invalid
UsernameOccupied
The username is occupied
UsernamePurchasable
The username can be purchased at https:fragment.com. Information about the username can be received using getCollectibleItemInfo
PublicChatsTooMany
The user has too many chats with username, one of them must be made private first
The user can’t be a member of a public supergroup
Trait Implementations§
Source§impl Clone for CheckChatUsernameResult
impl Clone for CheckChatUsernameResult
Source§fn clone(&self) -> CheckChatUsernameResult
fn clone(&self) -> CheckChatUsernameResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CheckChatUsernameResult
impl Debug for CheckChatUsernameResult
Source§impl<'de> Deserialize<'de> for CheckChatUsernameResult
impl<'de> Deserialize<'de> for CheckChatUsernameResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CheckChatUsernameResult
impl PartialEq for CheckChatUsernameResult
Source§impl Serialize for CheckChatUsernameResult
impl Serialize for CheckChatUsernameResult
impl StructuralPartialEq for CheckChatUsernameResult
Auto Trait Implementations§
impl Freeze for CheckChatUsernameResult
impl RefUnwindSafe for CheckChatUsernameResult
impl Send for CheckChatUsernameResult
impl Sync for CheckChatUsernameResult
impl Unpin for CheckChatUsernameResult
impl UnwindSafe for CheckChatUsernameResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more