|
|
@ -2,6 +2,7 @@ use chrono::DateTime; |
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
|
|
#[serde(deny_unknown_fields)]
|
|
|
|
pub struct AnimeBoxesBackup {
|
|
|
|
#[serde(rename(serialize = "backupTime", deserialize = "backupTime"))]
|
|
|
|
backup_time: DateTime<chrono::Utc>,
|
|
|
@ -20,6 +21,7 @@ pub struct AnimeBoxesBackup { |
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
|
|
#[serde(deny_unknown_fields)]
|
|
|
|
struct AnimeBoxesFavorite {
|
|
|
|
#[serde(rename(serialize = "dateAdded", deserialize = "dateAdded"))]
|
|
|
|
date_added: DateTime<chrono::Utc>,
|
|
|
@ -60,6 +62,7 @@ struct AnimeBoxesFavorite { |
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
|
|
#[serde(deny_unknown_fields)]
|
|
|
|
struct AnimeBoxesFavoriteFile {
|
|
|
|
#[serde(rename(serialize = "contentType", deserialize = "contentType"))]
|
|
|
|
content_type: i8,
|
|
|
@ -70,6 +73,7 @@ struct AnimeBoxesFavoriteFile { |
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
|
|
#[serde(deny_unknown_fields)]
|
|
|
|
struct AnimeBoxesFavoriteJpeg {
|
|
|
|
#[serde(rename(serialize = "contentType", deserialize = "contentType"))]
|
|
|
|
content_type: i8,
|
|
|
@ -80,6 +84,7 @@ struct AnimeBoxesFavoriteJpeg { |
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
|
|
#[serde(deny_unknown_fields)]
|
|
|
|
struct AnimeBoxesFavoritePreview {
|
|
|
|
#[serde(rename(serialize = "contentType", deserialize = "contentType"))]
|
|
|
|
content_type: i8,
|
|
|
@ -90,6 +95,7 @@ struct AnimeBoxesFavoritePreview { |
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
|
|
#[serde(deny_unknown_fields)]
|
|
|
|
struct AnimeBoxesFavoriteSample {
|
|
|
|
#[serde(rename(serialize = "contentType", deserialize = "contentType"))]
|
|
|
|
content_type: i8,
|
|
|
@ -100,6 +106,7 @@ struct AnimeBoxesFavoriteSample { |
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
|
|
#[serde(deny_unknown_fields)]
|
|
|
|
struct AnimeBoxesSearch {
|
|
|
|
#[serde(rename(serialize = "itemId", deserialize = "itemId"))]
|
|
|
|
item_id: i32,
|
|
|
@ -111,6 +118,7 @@ struct AnimeBoxesSearch { |
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
|
|
#[serde(deny_unknown_fields)]
|
|
|
|
struct AnimeBoxesServer {
|
|
|
|
#[serde(rename(serialize = "apikey", deserialize = "apikey"))]
|
|
|
|
api_key: String,
|
|
|
|