pub struct InternalLinkTypePassportDataRequest {
pub bot_user_id: i64,
pub scope: String,
pub public_key: String,
pub nonce: String,
pub callback_url: String,
}
Expand description
The link contains a request of Telegram passport data. Call getPassportAuthorizationForm with the given parameters to process the link if the link was received from outside of the application; otherwise, ignore it
Fields§
§bot_user_id: i64
User identifier of the service’s bot; the corresponding user may be unknown yet
scope: String
Telegram Passport element types requested by the service
public_key: String
Service’s public key
nonce: String
Unique request identifier provided by the service
callback_url: String
An HTTP URL to open once the request is finished, canceled, or failed with the parameters tg_passport=success, tg_passport=cancel, or tg_passport=error&error=… respectively. If empty, then onActivityResult method must be used to return response on Android, or the link tgbot{bot_user_id}:passport/success or tgbot{bot_user_id}:passport/cancel must be opened otherwise
Trait Implementations§
Source§impl Clone for InternalLinkTypePassportDataRequest
impl Clone for InternalLinkTypePassportDataRequest
Source§fn clone(&self) -> InternalLinkTypePassportDataRequest
fn clone(&self) -> InternalLinkTypePassportDataRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for InternalLinkTypePassportDataRequest
impl Default for InternalLinkTypePassportDataRequest
Source§fn default() -> InternalLinkTypePassportDataRequest
fn default() -> InternalLinkTypePassportDataRequest
Source§impl<'de> Deserialize<'de> for InternalLinkTypePassportDataRequest
impl<'de> Deserialize<'de> for InternalLinkTypePassportDataRequest
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>,
Source§impl PartialEq for InternalLinkTypePassportDataRequest
impl PartialEq for InternalLinkTypePassportDataRequest
Source§fn eq(&self, other: &InternalLinkTypePassportDataRequest) -> bool
fn eq(&self, other: &InternalLinkTypePassportDataRequest) -> bool
self
and other
values to be equal, and is used by ==
.