mangadex_api_schema_rust/v5/
manga_read_markers.rsuse std::collections::HashMap;
use serde::Deserialize;
use uuid::Uuid;
#[derive(Debug, Deserialize, Clone)]
#[serde(untagged)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
pub enum MangaReadMarkers {
Ungrouped(UngroupedMangaReadMarkers),
Grouped(GroupedMangaReadMarkers),
}
#[derive(Debug, Deserialize, Clone)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
pub struct UngroupedMangaReadMarkers {
pub data: Vec<Uuid>,
}
#[derive(Debug, Deserialize, Clone)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
pub struct GroupedMangaReadMarkers {
pub data: HashMap<Uuid, Vec<Uuid>>,
}