pub struct LoginUrlInfoRequestConfirmation {
pub url: String,
pub domain: String,
pub bot_user_id: i64,
pub request_write_access: bool,
pub request_phone_number_access: bool,
pub browser: String,
pub platform: String,
pub ip_address: String,
pub location: String,
}Expand description
An authorization confirmation dialog needs to be shown to the user
Fields§
§url: StringAn HTTP URL to be opened
domain: StringA domain of the URL
bot_user_id: i64User identifier of a bot linked with the website
request_write_access: boolTrue, if the user must be asked for the permission to the bot to send them messages
request_phone_number_access: boolTrue, if the user must be asked for the permission to share their phone number
browser: StringThe version of a browser used for the authorization; may be empty if irrelevant
platform: StringOperating system the browser is running on; may be empty if irrelevant
ip_address: StringIP address from which the authorization is performed, in human-readable format; may be empty if irrelevant
location: StringHuman-readable description of a country and a region from which the authorization is performed, based on the IP address; may be empty if irrelevant
Trait Implementations§
Source§impl Clone for LoginUrlInfoRequestConfirmation
impl Clone for LoginUrlInfoRequestConfirmation
Source§fn clone(&self) -> LoginUrlInfoRequestConfirmation
fn clone(&self) -> LoginUrlInfoRequestConfirmation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for LoginUrlInfoRequestConfirmation
impl Default for LoginUrlInfoRequestConfirmation
Source§fn default() -> LoginUrlInfoRequestConfirmation
fn default() -> LoginUrlInfoRequestConfirmation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LoginUrlInfoRequestConfirmation
impl<'de> Deserialize<'de> for LoginUrlInfoRequestConfirmation
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
Source§impl PartialEq for LoginUrlInfoRequestConfirmation
impl PartialEq for LoginUrlInfoRequestConfirmation
Source§fn eq(&self, other: &LoginUrlInfoRequestConfirmation) -> bool
fn eq(&self, other: &LoginUrlInfoRequestConfirmation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LoginUrlInfoRequestConfirmation
Auto Trait Implementations§
impl Freeze for LoginUrlInfoRequestConfirmation
impl RefUnwindSafe for LoginUrlInfoRequestConfirmation
impl Send for LoginUrlInfoRequestConfirmation
impl Sync for LoginUrlInfoRequestConfirmation
impl Unpin for LoginUrlInfoRequestConfirmation
impl UnsafeUnpin for LoginUrlInfoRequestConfirmation
impl UnwindSafe for LoginUrlInfoRequestConfirmation
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