pub struct SwitchInlineQueryChosenChat {
pub query: Option<String>,
pub allow_user_chats: Option<bool>,
pub allow_bot_chats: Option<bool>,
pub allow_group_chats: Option<bool>,
pub allow_channel_chats: Option<bool>,
}Expand description
Parameters for inline query routing to a specific type of chat.
Fields§
§query: Option<String>Default inline query to insert in the input field.
allow_user_chats: Option<bool>true if private chats with users can be chosen.
allow_bot_chats: Option<bool>true if private chats with bots can be chosen.
allow_group_chats: Option<bool>true if group and supergroup chats can be chosen.
allow_channel_chats: Option<bool>true if channel chats can be chosen.
Trait Implementations§
Source§impl Clone for SwitchInlineQueryChosenChat
impl Clone for SwitchInlineQueryChosenChat
Source§fn clone(&self) -> SwitchInlineQueryChosenChat
fn clone(&self) -> SwitchInlineQueryChosenChat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SwitchInlineQueryChosenChat
impl Debug for SwitchInlineQueryChosenChat
Source§impl Default for SwitchInlineQueryChosenChat
impl Default for SwitchInlineQueryChosenChat
Source§fn default() -> SwitchInlineQueryChosenChat
fn default() -> SwitchInlineQueryChosenChat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SwitchInlineQueryChosenChat
impl<'de> Deserialize<'de> for SwitchInlineQueryChosenChat
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 SwitchInlineQueryChosenChat
impl RefUnwindSafe for SwitchInlineQueryChosenChat
impl Send for SwitchInlineQueryChosenChat
impl Sync for SwitchInlineQueryChosenChat
impl Unpin for SwitchInlineQueryChosenChat
impl UnsafeUnpin for SwitchInlineQueryChosenChat
impl UnwindSafe for SwitchInlineQueryChosenChat
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