mangadex_api_schema_rust/v5/
manga_reading_statuses.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::collections::HashMap;

use mangadex_api_types::{ReadingStatus, ResultType};
use serde::Deserialize;
use uuid::Uuid;

/// Reading statuses for followed manga.
#[derive(Debug, Deserialize, Clone)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[serde(rename_all = "camelCase")]
#[cfg_attr(feature = "specta", derive(specta::Type))]
pub struct MangaReadingStatuses {
    #[serde(default)]
    pub result: ResultType,
    /// Mapping of manga ID to reading status.
    pub statuses: HashMap<Uuid, ReadingStatus>,
}