Struct rust_tdlib::types::SecretChat
source · [−]pub struct SecretChat { /* private fields */ }
Expand description
Represents a secret chat
Implementations
sourceimpl 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
sourceimpl AsRef<SecretChat> for SecretChat
impl AsRef<SecretChat> for SecretChat
sourcefn as_ref(&self) -> &SecretChat
fn as_ref(&self) -> &SecretChat
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for SecretChat
impl Clone for SecretChat
sourcefn clone(&self) -> SecretChat
fn clone(&self) -> SecretChat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SecretChat
impl Debug for SecretChat
sourceimpl Default for SecretChat
impl Default for SecretChat
sourcefn default() -> SecretChat
fn default() -> SecretChat
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SecretChat
impl<'de> Deserialize<'de> for SecretChat
sourcefn 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
sourceimpl Serialize for SecretChat
impl Serialize for SecretChat
Auto Trait Implementations
impl RefUnwindSafe for SecretChat
impl Send for SecretChat
impl Sync for SecretChat
impl Unpin for SecretChat
impl UnwindSafe for SecretChat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more