pub struct Report {
pub report_id: ReportId,
pub category: ReportCategory,
pub description: Option<String>,
pub target: ReportTarget,
pub evidence: Vec<Evidence>,
pub evidence_next: Option<u32>,
pub reporter_id: MemberId,
pub status: ReportStatus,
pub resolution: Option<Resolution>,
pub created_at: u64,
}Expand description
A report (§8.10). Only for MANAGE_REPORTS holders and, without other reporters’ data,
the reporter.
Fields§
§report_id: ReportIdHost-assigned id.
category: ReportCategoryThe category.
description: Option<String>≤ 2 000 scalars.
target: ReportTargetThe reported member or message.
evidence: Vec<Evidence>Host snapshots of the selected messages.
evidence_next: Option<u32>Some snapshots were left out to keep the report within a frame (items with
omitted: true): report.get with evidence_from set to this index returns them.
reporter_id: MemberIdThe reporter.
status: ReportStatusWorkflow status.
resolution: Option<Resolution>Set once resolved.
created_at: u64Creation time, ms.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Report
impl<'de> Deserialize<'de> for Report
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
impl Eq for Report
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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