pub struct CallbackQuery {
pub id: String,
pub from: User,
pub chat_instance: String,
pub message: Option<MaybeInaccessibleMessage>,
pub inline_message_id: Option<String>,
pub data: Option<String>,
pub game_short_name: Option<String>,
}
Expand description
https://core.telegram.org/bots/api#callbackquery This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present.
Fields§
§id: String
§from: User
§chat_instance: String
§message: Option<MaybeInaccessibleMessage>
§inline_message_id: Option<String>
§data: Option<String>
§game_short_name: Option<String>
Trait Implementations§
Source§impl Clone for CallbackQuery
impl Clone for CallbackQuery
Source§fn clone(&self) -> CallbackQuery
fn clone(&self) -> CallbackQuery
Returns a copy 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<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 PartialEq for CallbackQuery
impl PartialEq for CallbackQuery
Source§impl Serialize for CallbackQuery
impl Serialize 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 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