mangadex_api_schema_rust/v5/
cover.rsuse mangadex_api_types::{Language, MangaDexDateTime};
use serde::Deserialize;
#[derive(Clone, Debug, Deserialize, PartialEq)]
#[serde(rename_all = "camelCase")]
#[cfg_attr(feature = "non_exhaustive", non_exhaustive)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
pub struct CoverAttributes {
pub description: String,
pub locale: Option<Language>,
pub volume: Option<String>,
pub file_name: String,
#[cfg_attr(feature = "specta", specta(type = String))]
#[cfg_attr(
feature = "serialize",
serde(serialize_with = "crate::v5::mangadex_datetime_serialize")
)]
pub created_at: MangaDexDateTime,
#[cfg_attr(feature = "specta", specta(type = Option<String>))]
#[cfg_attr(
feature = "serialize",
serde(serialize_with = "crate::v5::mangadex_datetime_serialize_option")
)]
pub updated_at: Option<MangaDexDateTime>,
pub version: u32,
}