#[non_exhaustive]pub struct Query {
pub id: Id,
pub from: User,
pub origin: Origin,
pub chat_instance: String,
pub kind: Kind,
}Expand description
Represents a CallbackQuery.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: IdThe ID of the callback.
from: UserThe user who initiated the callback.
origin: OriginThe origin of the query.
chat_instance: StringThe identifier of the chat.
kind: KindThe kind of the callback.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Query
impl<'de> Deserialize<'de> for Query
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