[−][src]Enum rtdlib::types::LoginUrlInfo
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
Open(LoginUrlInfoOpen)
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]
&self,
fnc: F
) -> &Self
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]
&self,
fnc: F
) -> &Self
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]
&self
) -> Option<&LoginUrlInfoRequestConfirmation>
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]
t: T
) -> Self
Trait Implementations
impl AsRef<LoginUrlInfo> for LoginUrlInfo
[src]
fn as_ref(&self) -> &LoginUrlInfo
[src]
impl Clone for LoginUrlInfo
[src]
fn clone(&self) -> LoginUrlInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LoginUrlInfo
[src]
impl Default for LoginUrlInfo
[src]
impl<'de> Deserialize<'de> for LoginUrlInfo
[src]
fn deserialize<D>(deserializer: D) -> Result<LoginUrlInfo, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl RObject for LoginUrlInfo
[src]
impl Serialize for LoginUrlInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for LoginUrlInfo
impl Send for LoginUrlInfo
impl Sync for LoginUrlInfo
impl Unpin for LoginUrlInfo
impl UnwindSafe for LoginUrlInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,