pub struct CheckChatUsername {
pub chat_id: i64,
pub username: String,
}
Expand description
Checks whether a username can be set for a chat
Fields§
§chat_id: i64
Chat identifier; should be identifier of a supergroup chat, or a channel chat, or a private chat with self, or zero if chat is being created
username: String
Username to be checked
Trait Implementations§
Source§impl Clone for CheckChatUsername
impl Clone for CheckChatUsername
Source§fn clone(&self) -> CheckChatUsername
fn clone(&self) -> CheckChatUsername
Returns a duplicate 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 CheckChatUsername
impl Debug for CheckChatUsername
Source§impl<'de> Deserialize<'de> for CheckChatUsername
impl<'de> Deserialize<'de> for CheckChatUsername
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 Method for CheckChatUsername
impl Method for CheckChatUsername
Auto Trait Implementations§
impl Freeze for CheckChatUsername
impl RefUnwindSafe for CheckChatUsername
impl Send for CheckChatUsername
impl Sync for CheckChatUsername
impl Unpin for CheckChatUsername
impl UnwindSafe for CheckChatUsername
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