Struct rust_tdlib::types::ConnectedWebsite
source · pub struct ConnectedWebsite { /* private fields */ }
Expand description
Contains information about one website the current user is logged in with Telegram
Implementations§
source§impl ConnectedWebsite
impl ConnectedWebsite
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> ConnectedWebsiteBuilder
pub fn id(&self) -> i64
pub fn domain_name(&self) -> &String
pub fn bot_user_id(&self) -> i64
pub fn browser(&self) -> &String
pub fn platform(&self) -> &String
pub fn log_in_date(&self) -> i32
pub fn last_active_date(&self) -> i32
pub fn ip(&self) -> &String
pub fn location(&self) -> &String
Trait Implementations§
source§impl AsRef<ConnectedWebsite> for ConnectedWebsite
impl AsRef<ConnectedWebsite> for ConnectedWebsite
source§fn as_ref(&self) -> &ConnectedWebsite
fn as_ref(&self) -> &ConnectedWebsite
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for ConnectedWebsite
impl Clone for ConnectedWebsite
source§fn clone(&self) -> ConnectedWebsite
fn clone(&self) -> ConnectedWebsite
Returns a copy 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 ConnectedWebsite
impl Debug for ConnectedWebsite
source§impl Default for ConnectedWebsite
impl Default for ConnectedWebsite
source§fn default() -> ConnectedWebsite
fn default() -> ConnectedWebsite
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ConnectedWebsite
impl<'de> Deserialize<'de> for ConnectedWebsite
source§fn 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