pub struct DeleteChatHistory {
pub chat_id: i64,
pub remove_from_chat_list: bool,
}
Expand description
Deletes all messages in the chat only for the user. Cannot be used in channels and public supergroups
Fields§
§chat_id: i64
Chat identifier
remove_from_chat_list: bool
Pass true if the chat should be removed from the chats list
Trait Implementations§
Source§impl Clone for DeleteChatHistory
impl Clone for DeleteChatHistory
Source§fn clone(&self) -> DeleteChatHistory
fn clone(&self) -> DeleteChatHistory
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 DeleteChatHistory
impl Debug for DeleteChatHistory
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
Source§impl Method for DeleteChatHistory
impl Method for DeleteChatHistory
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