pub struct TelegramAuthentication { /* private fields */ }Implementations§
Source§impl TelegramAuthentication
impl TelegramAuthentication
pub fn auth_date<T>(self, value: T) -> Self
pub fn first_name<T>(self, value: T) -> Self
pub fn id<T>(self, value: T) -> Self
pub fn last_name<T>(self, value: T) -> Self
pub fn photo_url<T>(self, value: T) -> Self
pub fn type_<T>(self, value: T) -> Self
pub fn username<T>(self, value: T) -> Self
Trait Implementations§
Source§impl Clone for TelegramAuthentication
impl Clone for TelegramAuthentication
Source§fn clone(&self) -> TelegramAuthentication
fn clone(&self) -> TelegramAuthentication
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 TelegramAuthentication
impl Debug for TelegramAuthentication
Source§impl Default for TelegramAuthentication
impl Default for TelegramAuthentication
Source§impl From<TelegramAuthentication> for TelegramAuthentication
impl From<TelegramAuthentication> for TelegramAuthentication
Source§fn from(value: TelegramAuthentication) -> Self
fn from(value: TelegramAuthentication) -> Self
Converts to this type from the input type.
Source§impl TryFrom<TelegramAuthentication> for TelegramAuthentication
impl TryFrom<TelegramAuthentication> for TelegramAuthentication
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TelegramAuthentication) -> Result<Self, ConversionError>
fn try_from(value: TelegramAuthentication) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TelegramAuthentication
impl RefUnwindSafe for TelegramAuthentication
impl Send for TelegramAuthentication
impl Sync for TelegramAuthentication
impl Unpin for TelegramAuthentication
impl UnsafeUnpin for TelegramAuthentication
impl UnwindSafe for TelegramAuthentication
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