mangadex_api_schema_rust/v5/
report.rs

1use mangadex_api_types::{RelationshipType, ReportCategory};
2use serde::Deserialize;
3
4use crate::{TypedAttributes, v5::LocalizedString};
5
6/// Report reason response object.
7#[derive(Clone, Debug, Deserialize, Default)]
8#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
9#[serde(rename_all = "camelCase")]
10#[cfg_attr(feature = "specta", derive(specta::Type))]
11#[non_exhaustive]
12pub struct ReportReasonAttributes {
13    pub reason: LocalizedString,
14    pub details_required: bool,
15    pub category: Option<ReportCategory>,
16    pub version: u32,
17}
18
19impl TypedAttributes for ReportReasonAttributes {
20    const TYPE_: mangadex_api_types::RelationshipType = RelationshipType::ReportReason;
21}