mangadex_api_schema_rust/v5/
author.rsuse mangadex_api_types::MangaDexDateTime;
use serde::Deserialize;
use url::Url;
use crate::v5::{localizedstring_array_or_map, LocalizedString};
#[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 AuthorAttributes {
pub name: String,
pub image_url: Option<String>,
#[serde(with = "localizedstring_array_or_map")]
pub biography: LocalizedString,
#[cfg_attr(feature = "specta", specta(type = Option<String>))]
pub twitter: Option<Url>,
#[cfg_attr(feature = "specta", specta(type = Option<String>))]
pub pixiv: Option<Url>,
#[cfg_attr(feature = "specta", specta(type = Option<String>))]
pub melon_book: Option<Url>,
#[cfg_attr(feature = "specta", specta(type = Option<String>))]
pub fan_box: Option<Url>,
#[cfg_attr(feature = "specta", specta(type = Option<String>))]
pub booth: Option<Url>,
#[cfg_attr(feature = "specta", specta(type = Option<String>))]
pub nico_video: Option<Url>,
#[cfg_attr(feature = "specta", specta(type = Option<String>))]
pub skeb: Option<Url>,
#[cfg_attr(feature = "specta", specta(type = Option<String>))]
pub fantia: Option<Url>,
#[cfg_attr(feature = "specta", specta(type = Option<String>))]
pub tumblr: Option<Url>,
#[cfg_attr(feature = "specta", specta(type = Option<String>))]
pub youtube: Option<Url>,
#[cfg_attr(feature = "specta", specta(type = Option<String>))]
pub weibo: Option<Url>,
#[cfg_attr(feature = "specta", specta(type = Option<String>))]
pub naver: Option<Url>,
#[cfg_attr(feature = "specta", specta(type = Option<String>))]
pub namicomi: Option<Url>,
#[cfg_attr(feature = "specta", specta(type = Option<String>))]
pub website: Option<Url>,
pub version: u32,
#[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>,
}