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