mangadex_api_schema_rust/v5/
legacy_id_mapping.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
use mangadex_api_types::LegacyMappingType;
use serde::Deserialize;
use uuid::Uuid;

#[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
pub struct LegacyMappingIdAttributes {
    #[serde(rename = "type")]
    pub type_: LegacyMappingType,
    pub legacy_id: u32,
    pub new_id: Uuid,
}