[][src]Struct rtdlib::types::Session

pub struct Session { /* fields omitted */ }

Contains information about one session in a Telegram application used by the current user. Sessions should be shown to the user in the returned order

Implementations

impl Session[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

pub fn builder() -> RTDSessionBuilder[src]

pub fn id(&self) -> isize[src]

pub fn is_current(&self) -> bool[src]

pub fn is_password_pending(&self) -> bool[src]

pub fn api_id(&self) -> i64[src]

pub fn application_name(&self) -> &String[src]

pub fn application_version(&self) -> &String[src]

pub fn is_official_application(&self) -> bool[src]

pub fn device_model(&self) -> &String[src]

pub fn platform(&self) -> &String[src]

pub fn system_version(&self) -> &String[src]

pub fn log_in_date(&self) -> i64[src]

pub fn last_active_date(&self) -> i64[src]

pub fn ip(&self) -> &String[src]

pub fn country(&self) -> &String[src]

pub fn region(&self) -> &String[src]

Trait Implementations

impl AsRef<Session> for Session[src]

impl Clone for Session[src]

impl Debug for Session[src]

impl Default for Session[src]

impl<'de> Deserialize<'de> for Session[src]

impl RObject for Session[src]

impl Serialize for Session[src]

Auto Trait Implementations

impl RefUnwindSafe for Session

impl Send for Session

impl Sync for Session

impl Unpin for Session

impl UnwindSafe for Session

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.