pub struct AnswerInlineQuery {
pub inline_query_id: i64,
pub is_personal: bool,
pub results: Vec<InputInlineQueryResult>,
pub cache_time: i32,
pub next_offset: String,
pub switch_pm_text: String,
pub switch_pm_parameter: String,
}
Expand description
Sets the result of an inline query; for bots only
Fields§
§inline_query_id: i64
Identifier of the inline query
is_personal: bool
True, if the result of the query can be cached for the specified user
results: Vec<InputInlineQueryResult>
The results of the query
cache_time: i32
Allowed time to cache the results of the query, in seconds
next_offset: String
Offset for the next inline query; pass an empty string if there are no more results
switch_pm_text: String
If non-empty, this text should be shown on the button that opens a private chat with the bot and sends a start message to the bot with the parameter switch_pm_parameter
switch_pm_parameter: String
The parameter for the bot start message
Trait Implementations§
Source§impl Clone for AnswerInlineQuery
impl Clone for AnswerInlineQuery
Source§fn clone(&self) -> AnswerInlineQuery
fn clone(&self) -> AnswerInlineQuery
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 AnswerInlineQuery
impl Debug for AnswerInlineQuery
Source§impl<'de> Deserialize<'de> for AnswerInlineQuery
impl<'de> Deserialize<'de> for AnswerInlineQuery
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 AnswerInlineQuery
impl Method for AnswerInlineQuery
Auto Trait Implementations§
impl Freeze for AnswerInlineQuery
impl RefUnwindSafe for AnswerInlineQuery
impl Send for AnswerInlineQuery
impl Sync for AnswerInlineQuery
impl Unpin for AnswerInlineQuery
impl UnwindSafe for AnswerInlineQuery
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