1use crate::dmm::{ApiResult, ElementVec};
2use serde::{Deserialize, Serialize};
3
4#[derive(Serialize, Debug, Default)]
5pub struct SeriesSearchParams {
6 pub floor_id: String,
7 pub initial: Option<char>,
8 pub hits: Option<i64>,
9 pub offset: Option<i64>,
10}
11
12#[derive(Deserialize, Debug)]
13pub struct SeriesSearchResult {
14 pub status: String,
15 pub result_count: i64,
16 pub total_count: i64,
17 pub first_position: i64,
18 pub site_name: String,
19 pub site_code: String,
20 pub service_name: String,
21 pub service_code: String,
22 pub floor_id: String,
23 pub floor_name: String,
24 pub floor_code: String,
25 pub series: ElementVec<Series>, }
27impl ApiResult for SeriesSearchResult {}
28
29#[derive(Deserialize, Debug)]
30pub struct Series {
31 pub series_id: String,
32 pub name: String,
33 pub ruby: String,
34 pub list_url: String,
35}