mangadex_api_schema_rust/v5/
user_report.rs

1use mangadex_api_types::{MangaDexDateTime, ReportStatus};
2use serde::Deserialize;
3
4/// User submitted report information.
5#[derive(Clone, Debug, Deserialize)]
6#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
7#[serde(rename_all = "camelCase")]
8#[cfg_attr(feature = "non_exhaustive", non_exhaustive)]
9#[cfg_attr(feature = "specta", derive(specta::Type))]
10pub struct UserReportAttributes {
11    pub details: String,
12    pub object_id: String,
13    pub status: ReportStatus,
14    /// Datetime in `YYYY-MM-DDTHH:MM:SS+HH:MM` format.
15    #[cfg_attr(feature = "specta", specta(type = String))]
16    #[cfg_attr(
17        feature = "serialize",
18        serde(serialize_with = "crate::v5::mangadex_datetime_serialize")
19    )]
20    pub created_at: MangaDexDateTime,
21}