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
Auto Trait Implementations§
impl Freeze for ConnectedWebsite
impl RefUnwindSafe for ConnectedWebsite
impl Send for ConnectedWebsite
impl Sync for ConnectedWebsite
impl Unpin for ConnectedWebsite
impl UnwindSafe for ConnectedWebsite
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