Enum telegram::schema::User []

pub enum User {
    userEmpty {
        id: i32,
    },
    userSelf {
        id: i32,
        first_name: String,
        last_name: String,
        username: String,
        phone: String,
        photo: UserProfilePhoto,
        status: UserStatus,
        inactive: bool,
    },
    userContact {
        id: i32,
        first_name: String,
        last_name: String,
        username: String,
        access_hash: i64,
        phone: String,
        photo: UserProfilePhoto,
        status: UserStatus,
    },
    userRequest {
        id: i32,
        first_name: String,
        last_name: String,
        username: String,
        access_hash: i64,
        phone: String,
        photo: UserProfilePhoto,
        status: UserStatus,
    },
    userForeign {
        id: i32,
        first_name: String,
        last_name: String,
        username: String,
        access_hash: i64,
        photo: UserProfilePhoto,
        status: UserStatus,
    },
    userDeleted {
        id: i32,
        first_name: String,
        last_name: String,
        username: String,
    },
}

Variants

Fields of userEmpty

Fields of userSelf

Fields of userContact

Fields of userRequest

Fields of userForeign

Fields of userDeleted

Trait Implementations

impl Debug for User
[src]

Formats the value using the given formatter.

impl Serialize for User

Serialize to the passed buffer.