mangadex_api_schema_rust/v5/
report.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use mangadex_api_types::ReportCategory;
use serde::Deserialize;

use crate::v5::LocalizedString;

/// Report reason response object.
#[derive(Clone, Debug, Deserialize)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[serde(rename_all = "camelCase")]
#[cfg_attr(feature = "specta", derive(specta::Type))]
pub struct ReportReasonAttributes {
    pub reason: LocalizedString,
    pub details_required: bool,
    pub category: ReportCategory,
    pub version: u32,
}