mastodon_api\models/
report.rs

1use crate::models::Account;
2use serde::{Deserialize, Serialize};
3
4/// Represents a report of a status or account for rule violations.
5#[derive(Debug, Clone, Deserialize, Serialize)]
6pub struct Report {
7    /// The ID of the report.
8    pub id: String,
9    /// Whether action has been taken by moderators.
10    pub action_taken: bool,
11    /// When the action was taken (ISO 8601).
12    pub action_taken_at: Option<String>,
13    /// The category of the report (e.g., spam, violation).
14    pub category: String,
15    /// The comment provided by the reporter.
16    pub comment: String,
17    /// Whether the report was forwarded to the remote instance.
18    pub forwarded: bool,
19    /// When the report was created (ISO 8601).
20    pub created_at: String,
21    /// IDs of statuses that were reported.
22    pub status_ids: Option<Vec<String>>,
23    /// IDs of rules that were violated.
24    pub rule_ids: Option<Vec<String>>,
25    /// The account that was reported.
26    pub target_account: Account,
27}