Struct telegram_login::TelegramLogin
source · pub struct TelegramLogin {
pub id: i32,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub username: Option<String>,
pub photo_url: Option<String>,
pub auth_date: NaiveDateTime,
pub hash: String,
}
Expand description
The Telegram Login data object that is returned from the Telegram Auth endpoint.
Fields
id: i32
first_name: Option<String>
last_name: Option<String>
username: Option<String>
photo_url: Option<String>
auth_date: NaiveDateTime
hash: String
Trait Implementations
sourceimpl Clone for TelegramLogin
impl Clone for TelegramLogin
sourcefn clone(&self) -> TelegramLogin
fn clone(&self) -> TelegramLogin
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for TelegramLogin
impl Send for TelegramLogin
impl Sync for TelegramLogin
impl Unpin for TelegramLogin
impl UnwindSafe for TelegramLogin
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more