pub struct DeleteChatHistory { /* private fields */ }
Expand description
Deletes all messages in the chat. Use chat.can_be_deleted_only_for_self and chat.can_be_deleted_for_all_users fields to find whether and how the method can be applied to the chat
Implementations§
Trait Implementations§
Source§impl AsRef<DeleteChatHistory> for DeleteChatHistory
impl AsRef<DeleteChatHistory> for DeleteChatHistory
Source§fn as_ref(&self) -> &DeleteChatHistory
fn as_ref(&self) -> &DeleteChatHistory
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for DeleteChatHistory
impl Clone for DeleteChatHistory
Source§fn clone(&self) -> DeleteChatHistory
fn clone(&self) -> DeleteChatHistory
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 DeleteChatHistory
impl Debug for DeleteChatHistory
Source§impl Default for DeleteChatHistory
impl Default for DeleteChatHistory
Source§fn default() -> DeleteChatHistory
fn default() -> DeleteChatHistory
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeleteChatHistory
impl<'de> Deserialize<'de> for DeleteChatHistory
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 DeleteChatHistory
impl RefUnwindSafe for DeleteChatHistory
impl Send for DeleteChatHistory
impl Sync for DeleteChatHistory
impl Unpin for DeleteChatHistory
impl UnwindSafe for DeleteChatHistory
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