pub struct KeyboardButtonRequestChat {
pub request_id: i32,
pub chat_is_channel: bool,
pub chat_is_forum: Option<bool>,
pub chat_has_username: Option<bool>,
pub chat_is_created: Option<bool>,
pub user_administrator_rights: Option<Value>,
pub bot_administrator_rights: Option<Value>,
pub bot_is_member: Option<bool>,
pub request_title: Option<bool>,
pub request_username: Option<bool>,
pub request_photo: Option<bool>,
}Expand description
Defines criteria for selecting a chat via a keyboard button.
Fields§
§request_id: i32Signed 32-bit identifier of the request.
chat_is_channel: booltrue to request a channel chat; false for group or supergroup.
chat_is_forum: Option<bool>true to request a forum supergroup.
chat_has_username: Option<bool>true to request a chat with a username.
chat_is_created: Option<bool>true to request a chat owned by the user.
user_administrator_rights: Option<Value>Required administrator rights of the user in the chat.
bot_administrator_rights: Option<Value>Required administrator rights of the bot in the chat.
bot_is_member: Option<bool>true to request a chat where the bot is a member.
request_title: Option<bool>true to request the chat title.
request_username: Option<bool>true to request the chat username.
request_photo: Option<bool>true to request the chat photo.
Trait Implementations§
Source§impl Clone for KeyboardButtonRequestChat
impl Clone for KeyboardButtonRequestChat
Source§fn clone(&self) -> KeyboardButtonRequestChat
fn clone(&self) -> KeyboardButtonRequestChat
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 KeyboardButtonRequestChat
impl Debug for KeyboardButtonRequestChat
Source§impl<'de> Deserialize<'de> for KeyboardButtonRequestChat
impl<'de> Deserialize<'de> for KeyboardButtonRequestChat
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
Auto Trait Implementations§
impl Freeze for KeyboardButtonRequestChat
impl RefUnwindSafe for KeyboardButtonRequestChat
impl Send for KeyboardButtonRequestChat
impl Sync for KeyboardButtonRequestChat
impl Unpin for KeyboardButtonRequestChat
impl UnsafeUnpin for KeyboardButtonRequestChat
impl UnwindSafe for KeyboardButtonRequestChat
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