pub struct NoSkipCallbackQuery {
pub id: String,
pub from: BoxWrapper<Unbox<User>>,
pub message: Option<BoxWrapper<Unbox<MaybeInaccessibleMessage>>>,
pub inline_message_id: Option<String>,
pub chat_instance: String,
pub data: Option<String>,
pub game_short_name: Option<String>,
}Expand description
Companion type to CallbackQuery that doesn’t skip fields when serializing. Used for certain deserializers that use arrays to represent struct members
Fields§
§id: StringUnique identifier for this query
from: BoxWrapper<Unbox<User>>Sender
message: Option<BoxWrapper<Unbox<MaybeInaccessibleMessage>>>§inline_message_id: Option<String>§chat_instance: StringGlobal 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>§game_short_name: Option<String>Implementations§
Source§impl NoSkipCallbackQuery
impl NoSkipCallbackQuery
pub fn skip(self) -> CallbackQuery
Trait Implementations§
Source§impl Clone for NoSkipCallbackQuery
impl Clone for NoSkipCallbackQuery
Source§fn clone(&self) -> NoSkipCallbackQuery
fn clone(&self) -> NoSkipCallbackQuery
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 NoSkipCallbackQuery
impl Debug for NoSkipCallbackQuery
Source§impl Default for NoSkipCallbackQuery
impl Default for NoSkipCallbackQuery
Source§fn default() -> NoSkipCallbackQuery
fn default() -> NoSkipCallbackQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NoSkipCallbackQuery
impl<'de> Deserialize<'de> for NoSkipCallbackQuery
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 From<NoSkipCallbackQuery> for CallbackQuery
impl From<NoSkipCallbackQuery> for CallbackQuery
Source§fn from(t: NoSkipCallbackQuery) -> Self
fn from(t: NoSkipCallbackQuery) -> Self
Converts to this type from the input type.
Source§impl Hash for NoSkipCallbackQuery
impl Hash for NoSkipCallbackQuery
Source§impl Into<NoSkipCallbackQuery> for CallbackQuery
impl Into<NoSkipCallbackQuery> for CallbackQuery
Source§fn into(self) -> NoSkipCallbackQuery
fn into(self) -> NoSkipCallbackQuery
Converts this type into the (usually inferred) input type.
Source§impl Ord for NoSkipCallbackQuery
impl Ord for NoSkipCallbackQuery
Source§fn cmp(&self, other: &NoSkipCallbackQuery) -> Ordering
fn cmp(&self, other: &NoSkipCallbackQuery) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NoSkipCallbackQuery
impl PartialEq for NoSkipCallbackQuery
Source§impl PartialOrd for NoSkipCallbackQuery
impl PartialOrd for NoSkipCallbackQuery
Source§impl Serialize for NoSkipCallbackQuery
impl Serialize for NoSkipCallbackQuery
impl Eq for NoSkipCallbackQuery
impl StructuralPartialEq for NoSkipCallbackQuery
Auto Trait Implementations§
impl Freeze for NoSkipCallbackQuery
impl RefUnwindSafe for NoSkipCallbackQuery
impl Send for NoSkipCallbackQuery
impl Sync for NoSkipCallbackQuery
impl Unpin for NoSkipCallbackQuery
impl UnwindSafe for NoSkipCallbackQuery
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.