pub struct Authorization {Show 18 fields
pub current: bool,
pub official_app: bool,
pub password_pending: bool,
pub encrypted_requests_disabled: bool,
pub call_requests_disabled: bool,
pub unconfirmed: bool,
pub hash: i64,
pub device_model: String,
pub platform: String,
pub system_version: String,
pub api_id: i32,
pub app_name: String,
pub app_version: String,
pub date_created: i32,
pub date_active: i32,
pub ip: String,
pub country: String,
pub region: String,
}Expand description
Generated from:
authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true encrypted_requests_disabled:flags.3?true call_requests_disabled:flags.4?true unconfirmed:flags.5?true hash:long device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = AuthorizationFields§
§current: bool§official_app: bool§password_pending: bool§encrypted_requests_disabled: bool§call_requests_disabled: bool§unconfirmed: bool§hash: i64§device_model: String§platform: String§system_version: String§api_id: i32§app_name: String§app_version: String§date_created: i32§date_active: i32§ip: String§country: String§region: StringTrait Implementations§
Source§impl Clone for Authorization
impl Clone for Authorization
Source§fn clone(&self) -> Authorization
fn clone(&self) -> Authorization
Returns a duplicate 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 Authorization
impl Debug for Authorization
Source§impl Deserializable for Authorization
impl Deserializable for Authorization
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<Authorization> for Authorization
impl From<Authorization> for Authorization
Source§fn from(x: Authorization) -> Self
fn from(x: Authorization) -> Self
Converts to this type from the input type.
Source§impl Identifiable for Authorization
impl Identifiable for Authorization
Source§const CONSTRUCTOR_ID: u32 = 0xad01d61d
const CONSTRUCTOR_ID: u32 = 0xad01d61d
The constructor ID as specified in the TL schema.
Source§impl PartialEq for Authorization
impl PartialEq for Authorization
Source§impl Serializable for Authorization
impl Serializable for Authorization
Source§impl TryFrom<Authorization> for Authorization
impl TryFrom<Authorization> for Authorization
Source§type Error = Authorization
type Error = Authorization
The type returned in the event of a conversion error.
impl StructuralPartialEq for Authorization
Auto Trait Implementations§
impl Freeze for Authorization
impl RefUnwindSafe for Authorization
impl Send for Authorization
impl Sync for Authorization
impl Unpin for Authorization
impl UnsafeUnpin for Authorization
impl UnwindSafe for Authorization
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