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 hash: String,
pub auth_date: NaiveDateTime,
}
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>
hash: String
auth_date: NaiveDateTime
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 moresourceimpl Debug for TelegramLogin
impl Debug for TelegramLogin
sourceimpl<'de> Deserialize<'de> for TelegramLogin
impl<'de> Deserialize<'de> for TelegramLogin
sourcefn 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
sourceimpl Serialize for TelegramLogin
impl Serialize for TelegramLogin
Auto 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