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
sourceimpl AsRef<ToggleChatIsPinned> for ToggleChatIsPinned
impl AsRef<ToggleChatIsPinned> for ToggleChatIsPinned
sourcefn as_ref(&self) -> &ToggleChatIsPinned
fn as_ref(&self) -> &ToggleChatIsPinned
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for ToggleChatIsPinned
impl Clone for ToggleChatIsPinned
sourcefn clone(&self) -> ToggleChatIsPinned
fn clone(&self) -> ToggleChatIsPinned
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 ToggleChatIsPinned
impl Debug for ToggleChatIsPinned
sourceimpl Default for ToggleChatIsPinned
impl Default for ToggleChatIsPinned
sourcefn default() -> ToggleChatIsPinned
fn default() -> ToggleChatIsPinned
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ToggleChatIsPinned
impl<'de> Deserialize<'de> for ToggleChatIsPinned
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 ToggleChatIsPinned
impl Serialize for ToggleChatIsPinned
Auto Trait Implementations
impl RefUnwindSafe for ToggleChatIsPinned
impl Send for ToggleChatIsPinned
impl Sync for ToggleChatIsPinned
impl Unpin for ToggleChatIsPinned
impl UnwindSafe for ToggleChatIsPinned
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