dmm_api/
maker_search.rs

1use crate::dmm::{ApiResult, ElementVec};
2use serde::{Deserialize, Serialize};
3
4#[derive(Serialize, Debug, Default)]
5pub struct MakerSearchParams {
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 MakerSearchResult {
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 maker: ElementVec<Maker>, // FIXME: empty case
26}
27impl ApiResult for MakerSearchResult {}
28
29#[derive(Deserialize, Debug)]
30pub struct Maker {
31    pub maker_id: String,
32    pub name: String,
33    pub ruby: String,
34    pub list_url: String,
35}