pub struct ToggleChatIsPinned {
pub chat_id: i64,
pub is_pinned: bool,
}
Expand description
Changes the pinned state of a chat. You can pin up to GetOption(“pinned_chat_count_max”) non-secret chats and the same number of secret chats
Fields§
§chat_id: i64
Chat identifier
is_pinned: bool
New value of is_pinned
Trait Implementations§
Source§impl Clone for ToggleChatIsPinned
impl Clone for ToggleChatIsPinned
Source§fn clone(&self) -> ToggleChatIsPinned
fn clone(&self) -> ToggleChatIsPinned
Returns a duplicate 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<'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
Source§impl Method for ToggleChatIsPinned
impl Method for ToggleChatIsPinned
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