pub struct Account { /* private fields */ }Expand description
A Telegram account extracted from tdata
Implementations§
Source§impl Account
impl Account
Sourcepub const fn auth_key_bytes(&self) -> &[u8; 256]
pub const fn auth_key_bytes(&self) -> &[u8; 256]
Get the raw auth key bytes
Sourcepub fn to_grammers_session(&self) -> Result<Session>
pub fn to_grammers_session(&self) -> Result<Session>
Convert to grammers session data
Returns the session data that can be used with grammers-client
Sourcepub fn to_session_string(&self) -> Result<String>
pub fn to_session_string(&self) -> Result<String>
Export session as a base64 string (portable format)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnsafeUnpin for Account
impl UnwindSafe for Account
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