[][src]Enum rtdlib::types::LoginUrlInfo

pub enum LoginUrlInfo {
    GetLoginUrlInfo(GetLoginUrlInfo),
    Open(LoginUrlInfoOpen),
    RequestConfirmation(LoginUrlInfoRequestConfirmation),
    // some variants omitted
}

Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl

Variants

GetLoginUrlInfo(GetLoginUrlInfo)

Returns information about a button of type inlineKeyboardButtonTypeLoginUrl. The method needs to be called when the user presses the button

An HTTP url needs to be open

RequestConfirmation(LoginUrlInfoRequestConfirmation)

An authorization confirmation dialog needs to be shown to the user

Implementations

impl LoginUrlInfo[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

pub fn is_get_login_url_info(&self) -> bool[src]

pub fn is_open(&self) -> bool[src]

pub fn is_request_confirmation(&self) -> bool[src]

pub fn on_get_login_url_info<F: FnOnce(&GetLoginUrlInfo)>(
    &self,
    fnc: F
) -> &Self
[src]

pub fn on_open<F: FnOnce(&LoginUrlInfoOpen)>(&self, fnc: F) -> &Self[src]

pub fn on_request_confirmation<F: FnOnce(&LoginUrlInfoRequestConfirmation)>(
    &self,
    fnc: F
) -> &Self
[src]

pub fn as_get_login_url_info(&self) -> Option<&GetLoginUrlInfo>[src]

pub fn as_open(&self) -> Option<&LoginUrlInfoOpen>[src]

pub fn as_request_confirmation(
    &self
) -> Option<&LoginUrlInfoRequestConfirmation>
[src]

pub fn get_login_url_info<T: AsRef<GetLoginUrlInfo>>(t: T) -> Self[src]

pub fn open<T: AsRef<LoginUrlInfoOpen>>(t: T) -> Self[src]

pub fn request_confirmation<T: AsRef<LoginUrlInfoRequestConfirmation>>(
    t: T
) -> Self
[src]

Trait Implementations

impl AsRef<LoginUrlInfo> for LoginUrlInfo[src]

impl Clone for LoginUrlInfo[src]

impl Debug for LoginUrlInfo[src]

impl Default for LoginUrlInfo[src]

impl<'de> Deserialize<'de> for LoginUrlInfo[src]

impl RObject for LoginUrlInfo[src]

impl Serialize for LoginUrlInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.