use serde deserializer functions to remove duplicated structs, remove TryFrom impls, replace Language enum with wrapper around isolang Language type

This commit is contained in:
2025-07-26 17:15:43 +02:00
parent 4a795819cc
commit 352ac3bd1a
9 changed files with 630 additions and 1464 deletions

View File

@@ -2,8 +2,9 @@
use serde::Serialize;
use crate::response_deserializer::{
Chapter, ContentRating, Language, Manga, PublicationDemographic, State, Status, Titles,
Chapter, ContentRating, Manga, PublicationDemographic, State, Status, Titles,
};
use crate::language::Language;
use chrono::{DateTime, FixedOffset};
#[derive(Serialize)]
@@ -26,7 +27,7 @@ pub struct Metadata {
struct ChapterMetadata {
chapter: f32,
volume: f32,
title: String,
title: Option<String>,
pages: u32,
}