pub struct Report {
pub id: String,
pub action_taken: bool,
pub action_taken_at: Option<String>,
pub category: String,
pub comment: String,
pub forwarded: bool,
pub created_at: String,
pub status_ids: Option<Vec<String>>,
pub rule_ids: Option<Vec<String>>,
pub target_account: Account,
}Expand description
Represents a report of a status or account for rule violations.
Fields§
§id: StringThe ID of the report.
action_taken: boolWhether action has been taken by moderators.
action_taken_at: Option<String>When the action was taken (ISO 8601).
category: StringThe category of the report (e.g., spam, violation).
comment: StringThe comment provided by the reporter.
forwarded: boolWhether the report was forwarded to the remote instance.
created_at: StringWhen the report was created (ISO 8601).
status_ids: Option<Vec<String>>IDs of statuses that were reported.
rule_ids: Option<Vec<String>>IDs of rules that were violated.
target_account: AccountThe account that was reported.
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
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin 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