pub struct TelegramWebAppData {
pub auth_date: Option<f64>,
pub chat_instance: Option<String>,
pub chat_type: Option<String>,
pub hash: String,
pub query_id: Option<String>,
pub signature: Option<String>,
pub start_param: Option<String>,
pub user: String,
}Expand description
Auth result object returned by Telegram when a user authenticates using a mini app.
JSON schema
{
"title": "TelegramWebAppData",
"description": "Auth result object returned by Telegram when a user
authenticates using a mini app.",
"type": "object",
"required": [
"hash",
"user"
],
"properties": {
"auth_date": {
"type": "number"
},
"chat_instance": {
"type": "string"
},
"chat_type": {
"type": "string"
},
"hash": {
"type": "string"
},
"query_id": {
"type": "string"
},
"signature": {
"type": "string"
},
"start_param": {
"type": "string"
},
"user": {
"type": "string"
}
},
"x-stainless-model": "client_auth.telegram_web_app_data"
}Fields§
§auth_date: Option<f64>§chat_instance: Option<String>§chat_type: Option<String>§hash: String§query_id: Option<String>§signature: Option<String>§start_param: Option<String>§user: StringTrait Implementations§
Source§impl Clone for TelegramWebAppData
impl Clone for TelegramWebAppData
Source§fn clone(&self) -> TelegramWebAppData
fn clone(&self) -> TelegramWebAppData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TelegramWebAppData
impl Debug for TelegramWebAppData
Source§impl<'de> Deserialize<'de> for TelegramWebAppData
impl<'de> Deserialize<'de> for TelegramWebAppData
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<&TelegramWebAppData> for TelegramWebAppData
impl From<&TelegramWebAppData> for TelegramWebAppData
Source§fn from(value: &TelegramWebAppData) -> Self
fn from(value: &TelegramWebAppData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TelegramWebAppData
impl RefUnwindSafe for TelegramWebAppData
impl Send for TelegramWebAppData
impl Sync for TelegramWebAppData
impl Unpin for TelegramWebAppData
impl UnsafeUnpin for TelegramWebAppData
impl UnwindSafe for TelegramWebAppData
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