Enum rust_tdlib::types::LoginUrlInfo
source · 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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
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