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§fn default() -> TelegramAuthenticateInput
fn default() -> TelegramAuthenticateInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TelegramAuthenticateInput
impl<'de> Deserialize<'de> for TelegramAuthenticateInput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TelegramAuthenticateInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TelegramAuthenticateInput, <__D as Deserializer<'de>>::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) -> TelegramAuthenticateInput
fn from(value: &TelegramAuthenticateInput) -> TelegramAuthenticateInput
Converts to this type from the input type.
Source§impl Serialize for TelegramAuthenticateInput
impl Serialize for TelegramAuthenticateInput
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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