pub struct CallbackQuery {
pub id: String,
pub from: User,
pub chat_id: Option<i64>,
pub message_id: Option<i64>,
pub data: Option<String>,
}Expand description
An inline-keyboard press: the data an InlineButton carried, plus
who pressed it and where.
Fields§
§id: StringWhat answer_callback acknowledges.
from: UserWho pressed the button.
chat_id: Option<i64>The chat the button lives in, when Telegram still exposes the message to the bot.
message_id: Option<i64>The message the button lives on, same caveat.
data: Option<String>The button’s data, when it was a callback button.
Trait Implementations§
Source§impl Clone for CallbackQuery
impl Clone for CallbackQuery
Source§impl Debug for CallbackQuery
impl Debug for CallbackQuery
impl Eq for CallbackQuery
Source§impl PartialEq for CallbackQuery
impl PartialEq for CallbackQuery
impl StructuralPartialEq for CallbackQuery
Auto Trait Implementations§
impl Freeze for CallbackQuery
impl RefUnwindSafe for CallbackQuery
impl Send for CallbackQuery
impl Sync for CallbackQuery
impl Unpin for CallbackQuery
impl UnsafeUnpin for CallbackQuery
impl UnwindSafe for CallbackQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.