pub struct InlineQuery {
pub raw: Update,
pub state: State,
/* private fields */
}Expand description
Update that bots receive when a user performs an inline query such as @bot query.
Fields§
§raw: Update§state: StateImplementations§
Source§impl InlineQuery
impl InlineQuery
Sourcepub fn sender_id(&self) -> PeerId
pub fn sender_id(&self) -> PeerId
The Self::sender’s identifier.
Sourcepub async fn sender_ref(&self) -> Option<PeerRef>
pub async fn sender_ref(&self) -> Option<PeerRef>
Cached reference to the Self::sender, if it is in cache.
Sourcepub fn answer<T>(&self, results: impl IntoIterator<Item = T>) -> Answerwhere
T: Into<InputBotInlineResult>,
pub fn answer<T>(&self, results: impl IntoIterator<Item = T>) -> Answerwhere
T: Into<InputBotInlineResult>,
Answer the inline query.
Sourcepub fn peer_type(&self) -> Option<InlineQueryPeerType>
pub fn peer_type(&self) -> Option<InlineQueryPeerType>
Type of the peer from which the inline query was sent.
Trait Implementations§
Source§impl Clone for InlineQuery
impl Clone for InlineQuery
Source§fn clone(&self) -> InlineQuery
fn clone(&self) -> InlineQuery
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 moreAuto Trait Implementations§
impl Freeze for InlineQuery
impl !RefUnwindSafe for InlineQuery
impl Send for InlineQuery
impl Sync for InlineQuery
impl Unpin for InlineQuery
impl UnsafeUnpin for InlineQuery
impl !UnwindSafe for InlineQuery
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