|
|
@ -1,9 +1,10 @@ |
|
|
|
use chrono::DateTime;
|
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
|
|
pub struct AnimeBoxesBackup {
|
|
|
|
#[serde(rename(serialize = "backupTime", deserialize = "backupTime"))]
|
|
|
|
backup_time: String,
|
|
|
|
backup_time: DateTime<chrono::Utc>,
|
|
|
|
#[serde(rename(serialize = "backupVersion", deserialize = "backupVersion"))]
|
|
|
|
backup_version: String,
|
|
|
|
#[serde(rename(serialize = "bannedTags", deserialize = "bannedTags"))]
|
|
|
@ -21,7 +22,7 @@ pub struct AnimeBoxesBackup { |
|
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
|
|
struct AnimeBoxesFavorite {
|
|
|
|
#[serde(rename(serialize = "dateAdded", deserialize = "dateAdded"))]
|
|
|
|
date_added: String,
|
|
|
|
date_added: DateTime<chrono::Utc>,
|
|
|
|
#[serde(rename(serialize = "disableStorage", deserialize = "disableStorage"))]
|
|
|
|
disable_storage: bool,
|
|
|
|
#[serde(rename(
|
|
|
@ -103,7 +104,7 @@ struct AnimeBoxesSearch { |
|
|
|
#[serde(rename(serialize = "itemId", deserialize = "itemId"))]
|
|
|
|
item_id: i32,
|
|
|
|
#[serde(rename(serialize = "searchDate", deserialize = "searchDate"))]
|
|
|
|
search_date: String,
|
|
|
|
search_date: DateTime<chrono::Utc>,
|
|
|
|
#[serde(rename(serialize = "searchText", deserialize = "searchText"))]
|
|
|
|
search_text: String,
|
|
|
|
starred: bool,
|
|
|
@ -111,7 +112,8 @@ struct AnimeBoxesSearch { |
|
|
|
|
|
|
|
#[derive(Serialize, Deserialize, Debug)]
|
|
|
|
struct AnimeBoxesServer {
|
|
|
|
apikey: String,
|
|
|
|
#[serde(rename(serialize = "apikey", deserialize = "apikey"))]
|
|
|
|
api_key: String,
|
|
|
|
#[serde(rename(serialize = "isDefault", deserialize = "isDefault"))]
|
|
|
|
is_default: bool,
|
|
|
|
#[serde(rename(serialize = "isSelected", deserialize = "isSelected"))]
|
|
|
|