mangadex_api_schema_rust/v5/
scanlation_group.rsuse mangadex_api_types::{Language, MangaDexDateTime, MangaDexDuration};
use serde::Deserialize;
use url::Url;
use crate::v5::LocalizedString;
#[derive(Clone, Debug, Deserialize)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[serde(rename_all = "camelCase")]
#[cfg_attr(feature = "non_exhaustive", non_exhaustive)]
#[cfg_attr(feature = "specta", derive(specta::Type))]
pub struct ScanlationGroupAttributes {
pub name: String,
pub alt_names: Vec<LocalizedString>,
pub website: Option<String>,
pub irc_server: Option<String>,
pub irc_channel: Option<String>,
pub discord: Option<String>,
pub contact_email: Option<String>,
pub description: Option<String>,
pub twitter: Option<Url>,
pub manga_updates: Option<Url>,
pub focused_languages: Option<Vec<Language>>,
pub locked: bool,
pub official: bool,
pub verified: bool,
pub inactive: bool,
#[serde(skip_serializing_if = "Option::is_none")]
pub ex_licensed: Option<bool>,
#[cfg_attr(feature = "specta", specta(type = Option<String>))]
pub publish_delay: Option<MangaDexDuration>,
pub version: u32,
#[cfg_attr(
feature = "serialize",
serde(serialize_with = "crate::v5::mangadex_datetime_serialize")
)]
pub created_at: MangaDexDateTime,
#[cfg_attr(
feature = "serialize",
serde(serialize_with = "crate::v5::mangadex_datetime_serialize")
)]
pub updated_at: MangaDexDateTime,
}