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