Struct rust_tdlib::types::ToggleChatIsPinned
source · pub struct ToggleChatIsPinned { /* private fields */ }
Expand description
Changes the pinned state of a chat. There can be up to GetOption(“pinned_chat_count_max”)/GetOption(“pinned_archived_chat_count_max”) pinned non-secret chats and the same number of secret chats in the main/arhive chat list
Implementations§
Trait Implementations§
source§impl AsRef<ToggleChatIsPinned> for ToggleChatIsPinned
impl AsRef<ToggleChatIsPinned> for ToggleChatIsPinned
source§fn as_ref(&self) -> &ToggleChatIsPinned
fn as_ref(&self) -> &ToggleChatIsPinned
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for ToggleChatIsPinned
impl Clone for ToggleChatIsPinned
source§fn clone(&self) -> ToggleChatIsPinned
fn clone(&self) -> ToggleChatIsPinned
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 ToggleChatIsPinned
impl Debug for ToggleChatIsPinned
source§impl Default for ToggleChatIsPinned
impl Default for ToggleChatIsPinned
source§fn default() -> ToggleChatIsPinned
fn default() -> ToggleChatIsPinned
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ToggleChatIsPinned
impl<'de> Deserialize<'de> for ToggleChatIsPinned
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