mangadex_api_schema_rust/v5/
custom_list.rs1use mangadex_api_types::{CustomListVisibility, RelationshipType};
4use serde::Deserialize;
5
6use crate::TypedAttributes;
7
8#[derive(Clone, Debug, Deserialize, PartialEq, Default)]
9#[serde(rename_all = "camelCase")]
10#[non_exhaustive]
11#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
12#[cfg_attr(feature = "specta", derive(specta::Type))]
13pub struct CustomListAttributes {
14 pub name: String,
15 pub visibility: CustomListVisibility,
16 pub version: u32,
17}
18
19impl TypedAttributes for CustomListAttributes {
20 const TYPE_: mangadex_api_types::RelationshipType = RelationshipType::CustomList;
21}