Struct telegram_bot_fork_raw::types::callback_query::CallbackQuery
source · pub struct CallbackQuery {
pub id: CallbackQueryId,
pub from: User,
pub message: Message,
pub chat_instance: String,
pub data: 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: Message
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
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: String
Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.
Trait Implementations
sourceimpl Clone for CallbackQuery
impl Clone for CallbackQuery
sourcefn clone(&self) -> CallbackQuery
fn clone(&self) -> CallbackQuery
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CallbackQuery
impl Debug for CallbackQuery
sourceimpl<'de> Deserialize<'de> for CallbackQuery
impl<'de> Deserialize<'de> for CallbackQuery
sourcefn 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
sourceimpl PartialEq<CallbackQuery> for CallbackQuery
impl PartialEq<CallbackQuery> for CallbackQuery
sourcefn eq(&self, other: &CallbackQuery) -> bool
fn eq(&self, other: &CallbackQuery) -> bool
sourceimpl PartialOrd<CallbackQuery> for CallbackQuery
impl PartialOrd<CallbackQuery> for CallbackQuery
sourcefn partial_cmp(&self, other: &CallbackQuery) -> Option<Ordering>
fn partial_cmp(&self, other: &CallbackQuery) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl ToCallbackQueryId for CallbackQuery
impl ToCallbackQueryId for CallbackQuery
fn to_callback_query_id(&self) -> CallbackQueryId
impl StructuralPartialEq for CallbackQuery
Auto Trait Implementations
impl RefUnwindSafe for CallbackQuery
impl Send for CallbackQuery
impl Sync for CallbackQuery
impl Unpin for CallbackQuery
impl UnwindSafe for CallbackQuery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more