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
userEmpty
Fields of userEmpty
id: i32 |
userSelf
Fields of userSelf
id: i32 | |
first_name: String | |
last_name: String | |
username: String | |
phone: String | |
photo: UserProfilePhoto | |
status: UserStatus | |
inactive: bool |
userContact
Fields of userContact
id: i32 | |
first_name: String | |
last_name: String | |
username: String | |
access_hash: i64 | |
phone: String | |
photo: UserProfilePhoto | |
status: UserStatus |
userRequest
Fields of userRequest
id: i32 | |
first_name: String | |
last_name: String | |
username: String | |
access_hash: i64 | |
phone: String | |
photo: UserProfilePhoto | |
status: UserStatus |
userForeign
Fields of userForeign
id: i32 | |
first_name: String | |
last_name: String | |
username: String | |
access_hash: i64 | |
photo: UserProfilePhoto | |
status: UserStatus |
userDeleted
Fields of userDeleted
id: i32 | |
first_name: String | |
last_name: String | |
username: String |
Trait Implementations
impl Debug for User
[src]
impl Serialize for User
fn serialize_to(&self, buffer: &mut Vec<u8>) -> Result<()>
Serialize to the passed buffer.