pub struct CallbackQuery {
pub id: CallbackQueryId,
pub from: User,
pub message: Option<MessageOrChannelPost>,
pub inline_message_id: Option<String>,
pub chat_instance: String,
pub data: Option<String>,
}
Expand description
This object represents an incoming callback query from a callback button in an inline keyboard.
Fields§
§id: CallbackQueryId
Unique identifier for this query
from: User
Sender
message: Option<MessageOrChannelPost>
Message with the callback button that originated the query. Note that message content and message date will not be available if the message is too old
inline_message_id: Option<String>
Identifier of the message sent via the bot in inline mode, that originated the query.
chat_instance: String
Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
data: Option<String>
Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.
Trait Implementations§
Source§impl Clone for CallbackQuery
impl Clone for CallbackQuery
Source§fn clone(&self) -> CallbackQuery
fn clone(&self) -> CallbackQuery
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 CallbackQuery
impl Debug for CallbackQuery
Source§impl<'de> Deserialize<'de> for CallbackQuery
impl<'de> Deserialize<'de> for CallbackQuery
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallbackQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallbackQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CallbackQuery
impl PartialEq for CallbackQuery
Source§impl PartialOrd for CallbackQuery
impl PartialOrd for CallbackQuery
Source§impl ToCallbackQueryId for CallbackQuery
impl ToCallbackQueryId for CallbackQuery
fn to_callback_query_id(&self) -> CallbackQueryId
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 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