pub enum LoginUrlInfo {
GetExternalLinkInfo(GetExternalLinkInfo),
GetLoginUrlInfo(GetLoginUrlInfo),
Open(LoginUrlInfoOpen),
RequestConfirmation(LoginUrlInfoRequestConfirmation),
// some variants omitted
}
Expand description
Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl
Variants§
GetExternalLinkInfo(GetExternalLinkInfo)
Returns information about an action to be done when the current user clicks an external link. Don’t use this method for links from secret chats if web page preview is disabled in secret chats
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§
Trait Implementations§
Source§impl AsRef<LoginUrlInfo> for LoginUrlInfo
impl AsRef<LoginUrlInfo> for LoginUrlInfo
Source§fn as_ref(&self) -> &LoginUrlInfo
fn as_ref(&self) -> &LoginUrlInfo
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for LoginUrlInfo
impl Clone for LoginUrlInfo
Source§fn clone(&self) -> LoginUrlInfo
fn clone(&self) -> LoginUrlInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LoginUrlInfo
impl Debug for LoginUrlInfo
Source§impl Default for LoginUrlInfo
impl Default for LoginUrlInfo
Source§fn default() -> LoginUrlInfo
fn default() -> LoginUrlInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LoginUrlInfo
impl<'de> Deserialize<'de> for LoginUrlInfo
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LoginUrlInfo
impl RefUnwindSafe for LoginUrlInfo
impl Send for LoginUrlInfo
impl Sync for LoginUrlInfo
impl Unpin for LoginUrlInfo
impl UnwindSafe for LoginUrlInfo
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