pub struct InternalLinkTypePassportDataRequest { /* private fields */ }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 app, otherwise ignore it
Implementations
sourceimpl InternalLinkTypePassportDataRequest
impl InternalLinkTypePassportDataRequest
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> InternalLinkTypePassportDataRequestBuilder
pub fn bot_user_id(&self) -> i64
pub fn scope(&self) -> &String
pub fn public_key(&self) -> &String
pub fn nonce(&self) -> &String
pub fn callback_url(&self) -> &String
Trait Implementations
sourceimpl AsRef<InternalLinkTypePassportDataRequest> for InternalLinkTypePassportDataRequest
impl AsRef<InternalLinkTypePassportDataRequest> for InternalLinkTypePassportDataRequest
sourcefn as_ref(&self) -> &InternalLinkTypePassportDataRequest
fn as_ref(&self) -> &InternalLinkTypePassportDataRequest
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for InternalLinkTypePassportDataRequest
impl Clone for InternalLinkTypePassportDataRequest
sourcefn clone(&self) -> InternalLinkTypePassportDataRequest
fn clone(&self) -> InternalLinkTypePassportDataRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Default for InternalLinkTypePassportDataRequest
impl Default for InternalLinkTypePassportDataRequest
sourcefn default() -> InternalLinkTypePassportDataRequest
fn default() -> InternalLinkTypePassportDataRequest
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for InternalLinkTypePassportDataRequest
impl<'de> Deserialize<'de> for InternalLinkTypePassportDataRequest
sourcefn 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
impl TDInternalLinkType for InternalLinkTypePassportDataRequest
Auto Trait Implementations
impl RefUnwindSafe for InternalLinkTypePassportDataRequest
impl Send for InternalLinkTypePassportDataRequest
impl Sync for InternalLinkTypePassportDataRequest
impl Unpin for InternalLinkTypePassportDataRequest
impl UnwindSafe for InternalLinkTypePassportDataRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more