Struct rust_tdlib::types::SecretChat
source · pub struct SecretChat { /* private fields */ }
Expand description
Represents a secret chat
Implementations§
source§impl SecretChat
impl SecretChat
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> SecretChatBuilder
pub fn id(&self) -> i32
pub fn user_id(&self) -> i64
pub fn state(&self) -> &SecretChatState
pub fn is_outbound(&self) -> bool
pub fn key_hash(&self) -> &String
pub fn layer(&self) -> i32
Trait Implementations§
source§impl AsRef<SecretChat> for SecretChat
impl AsRef<SecretChat> for SecretChat
source§fn as_ref(&self) -> &SecretChat
fn as_ref(&self) -> &SecretChat
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for SecretChat
impl Clone for SecretChat
source§fn clone(&self) -> SecretChat
fn clone(&self) -> SecretChat
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 SecretChat
impl Debug for SecretChat
source§impl Default for SecretChat
impl Default for SecretChat
source§fn default() -> SecretChat
fn default() -> SecretChat
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SecretChat
impl<'de> Deserialize<'de> for SecretChat
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