#[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: Id
The ID of the callback.
from: User
The user who initiated the callback.
origin: Origin
The origin of the query.
chat_instance: String
The identifier of the chat.
kind: Kind
The 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