pub struct TelegramAuthenticateInput {
pub captcha_token: Option<String>,
pub mode: Option<AuthenticateModeOption>,
pub telegram_auth_result: Option<TelegramAuthResult>,
pub telegram_web_app_data: Option<TelegramWebAppData>,
}Expand description
Input for authenticating with Telegram.
JSON schema
{
"title": "TelegramAuthenticateInput",
"description": "Input for authenticating with Telegram.",
"type": "object",
"properties": {
"captcha_token": {
"type": "string"
},
"mode": {
"$ref": "#/components/schemas/AuthenticateModeOption"
},
"telegram_auth_result": {
"$ref": "#/components/schemas/TelegramAuthResult"
},
"telegram_web_app_data": {
"$ref": "#/components/schemas/TelegramWebAppData"
}
},
"x-stainless-model": "client_auth.telegram_authenticate_input"
}Fields§
§captcha_token: Option<String>§mode: Option<AuthenticateModeOption>§telegram_auth_result: Option<TelegramAuthResult>§telegram_web_app_data: Option<TelegramWebAppData>Trait Implementations§
Source§impl Clone for TelegramAuthenticateInput
impl Clone for TelegramAuthenticateInput
Source§fn clone(&self) -> TelegramAuthenticateInput
fn clone(&self) -> TelegramAuthenticateInput
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 TelegramAuthenticateInput
impl Debug for TelegramAuthenticateInput
Source§impl Default for TelegramAuthenticateInput
impl Default for TelegramAuthenticateInput
Source§impl<'de> Deserialize<'de> for TelegramAuthenticateInput
impl<'de> Deserialize<'de> for TelegramAuthenticateInput
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<&TelegramAuthenticateInput> for TelegramAuthenticateInput
impl From<&TelegramAuthenticateInput> for TelegramAuthenticateInput
Source§fn from(value: &TelegramAuthenticateInput) -> Self
fn from(value: &TelegramAuthenticateInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TelegramAuthenticateInput
impl RefUnwindSafe for TelegramAuthenticateInput
impl Send for TelegramAuthenticateInput
impl Sync for TelegramAuthenticateInput
impl Unpin for TelegramAuthenticateInput
impl UnsafeUnpin for TelegramAuthenticateInput
impl UnwindSafe for TelegramAuthenticateInput
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