pub struct AccountInfo {
pub registration_month: i32,
pub registration_year: i32,
pub phone_number_country_code: String,
pub last_name_change_date: i32,
pub last_photo_change_date: i32,
}Expand description
Contains basic information about another user who started a chat with the current user
Fields§
§registration_month: i32Month when the user was registered in Telegram; 0-12; may be 0 if unknown
registration_year: i32Year when the user was registered in Telegram; 0-9999; may be 0 if unknown
phone_number_country_code: StringA two-letter ISO 3166-1 alpha-2 country code based on the phone number of the user; may be empty if unknown
last_name_change_date: i32Point in time (Unix timestamp) when the user changed name last time; 0 if unknown
last_photo_change_date: i32Point in time (Unix timestamp) when the user changed photo last time; 0 if unknown
Trait Implementations§
Source§impl Clone for AccountInfo
impl Clone for AccountInfo
Source§fn clone(&self) -> AccountInfo
fn clone(&self) -> AccountInfo
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 AccountInfo
impl Debug for AccountInfo
Source§impl Default for AccountInfo
impl Default for AccountInfo
Source§fn default() -> AccountInfo
fn default() -> AccountInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccountInfo
impl<'de> Deserialize<'de> for AccountInfo
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 AccountInfo
impl PartialEq for AccountInfo
Source§impl Serialize for AccountInfo
impl Serialize for AccountInfo
impl StructuralPartialEq for AccountInfo
Auto Trait Implementations§
impl Freeze for AccountInfo
impl RefUnwindSafe for AccountInfo
impl Send for AccountInfo
impl Sync for AccountInfo
impl Unpin for AccountInfo
impl UnsafeUnpin for AccountInfo
impl UnwindSafe for AccountInfo
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