use serde::Deserialize; // --- Models for the Search API --- #[derive(Debug, Deserialize)] pub struct SearchResponse { pub results: Vec, } #[derive(Debug, Deserialize)] pub struct SearchResult { pub title: String, pub authors: Vec, pub publishers: Vec, pub cover_url: String, } // --- Models for the EPUB API --- #[derive(Debug, Deserialize)] pub struct EpubResponse { pub publication_date: String, pub chapters: String, // This is a URL to the chapters list pub files: String, // This is a URL to the resource files }