[][src]Struct grammers_tl_types::types::User

pub struct User {
    pub is_self: bool,
    pub contact: bool,
    pub mutual_contact: bool,
    pub deleted: bool,
    pub bot: bool,
    pub bot_chat_history: bool,
    pub bot_nochats: bool,
    pub verified: bool,
    pub restricted: bool,
    pub min: bool,
    pub bot_inline_geo: bool,
    pub support: bool,
    pub scam: bool,
    pub id: i32,
    pub access_hash: Option<i64>,
    pub first_name: Option<String>,
    pub last_name: Option<String>,
    pub username: Option<String>,
    pub phone: Option<String>,
    pub photo: Option<UserProfilePhoto>,
    pub status: Option<UserStatus>,
    pub bot_info_version: Option<i32>,
    pub restriction_reason: Option<Vec<RestrictionReason>>,
    pub bot_inline_placeholder: Option<String>,
    pub lang_code: Option<String>,
}

Fields

is_self: boolcontact: boolmutual_contact: booldeleted: boolbot: boolbot_chat_history: boolbot_nochats: boolverified: boolrestricted: boolmin: boolbot_inline_geo: boolsupport: boolscam: boolid: i32access_hash: Option<i64>first_name: Option<String>last_name: Option<String>username: Option<String>phone: Option<String>photo: Option<UserProfilePhoto>status: Option<UserStatus>bot_info_version: Option<i32>restriction_reason: Option<Vec<RestrictionReason>>bot_inline_placeholder: Option<String>lang_code: Option<String>

Trait Implementations

impl Clone for User[src]

impl Debug for User[src]

impl Deserializable for User[src]

impl From<User> for User[src]

impl Identifiable for User[src]

impl PartialEq<User> for User[src]

impl Serializable for User[src]

impl StructuralPartialEq for User[src]

impl TryFrom<User> for User[src]

type Error = WrongVariant

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for User

impl Send for User

impl Sync for User

impl Unpin for User

impl UnwindSafe for User

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.