pub struct ReportChat {
pub chat_id: i64,
pub reason: ChatReportReason,
pub message_ids: Vec<i64>,
}
Expand description
Reports a chat to the Telegram moderators. Supported only for supergroups, channels, or private chats with bots, since other chats can’t be checked by moderators
Fields§
§chat_id: i64
Chat identifier
reason: ChatReportReason
The reason for reporting the chat
message_ids: Vec<i64>
Identifiers of reported messages, if any
Trait Implementations§
Source§impl Clone for ReportChat
impl Clone for ReportChat
Source§fn clone(&self) -> ReportChat
fn clone(&self) -> ReportChat
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 ReportChat
impl Debug for ReportChat
Source§impl<'de> Deserialize<'de> for ReportChat
impl<'de> Deserialize<'de> for ReportChat
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 ReportChat
impl Method for ReportChat
Auto Trait Implementations§
impl Freeze for ReportChat
impl RefUnwindSafe for ReportChat
impl Send for ReportChat
impl Sync for ReportChat
impl Unpin for ReportChat
impl UnwindSafe for ReportChat
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