pub struct ChangeChatReportSpamState {
pub chat_id: i64,
pub is_spam_chat: bool,
}
Expand description
Used to let the server know whether a chat is spam or not. Can be used only if ChatReportSpamState.can_report_spam is true. After this request, ChatReportSpamState.can_report_spam becomes false forever
Fields§
§chat_id: i64
Chat identifier
is_spam_chat: bool
If true, the chat will be reported as spam; otherwise it will be marked as not spam
Trait Implementations§
Source§impl Clone for ChangeChatReportSpamState
impl Clone for ChangeChatReportSpamState
Source§fn clone(&self) -> ChangeChatReportSpamState
fn clone(&self) -> ChangeChatReportSpamState
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 ChangeChatReportSpamState
impl Debug for ChangeChatReportSpamState
Source§impl<'de> Deserialize<'de> for ChangeChatReportSpamState
impl<'de> Deserialize<'de> for ChangeChatReportSpamState
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 ChangeChatReportSpamState
impl Method for ChangeChatReportSpamState
Auto Trait Implementations§
impl Freeze for ChangeChatReportSpamState
impl RefUnwindSafe for ChangeChatReportSpamState
impl Send for ChangeChatReportSpamState
impl Sync for ChangeChatReportSpamState
impl Unpin for ChangeChatReportSpamState
impl UnwindSafe for ChangeChatReportSpamState
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