mangadex_api_schema_rust/v5/
manga_relation.rs1use mangadex_api_types::{MangaRelation, RelationshipType};
2use serde::Deserialize;
3
4use crate::TypedAttributes;
5
6#[derive(Clone, Debug, Deserialize, PartialEq, Default)]
8#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
9#[cfg_attr(feature = "specta", derive(specta::Type))]
10#[non_exhaustive]
11pub struct MangaRelationAttributes {
12 pub relation: MangaRelation,
13 pub version: u32,
14}
15
16impl TypedAttributes for MangaRelationAttributes {
17 const TYPE_: mangadex_api_types::RelationshipType = RelationshipType::MangaRelation;
18}