pub struct LoginUrl {
pub url: String,
pub forward_text: Option<String>,
pub bot_username: Option<String>,
pub request_write_access: Option<bool>,
}Expand description
Parameters for a Login URL button.
Fields§
§url: StringHTTPS URL to forward the user to.
forward_text: Option<String>New text of the button in forwarded messages.
bot_username: Option<String>Username of the bot to use for user authorization.
request_write_access: Option<bool>true to request permission for the bot to send messages to the user.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LoginUrl
impl<'de> Deserialize<'de> for LoginUrl
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 LoginUrl
impl RefUnwindSafe for LoginUrl
impl Send for LoginUrl
impl Sync for LoginUrl
impl Unpin for LoginUrl
impl UnsafeUnpin for LoginUrl
impl UnwindSafe for LoginUrl
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