Drew Short
5 years ago
2 changed files with 95 additions and 0 deletions
-
2src/main.rs
-
93src/model.rs
@ -0,0 +1,93 @@ |
|||
struct AnimeBoxesBackup {
|
|||
backupTime: String,
|
|||
backupVersion: String,
|
|||
bannedTags: Vec<String>,
|
|||
creatorName: String,
|
|||
creatorVersion: String,
|
|||
favorites: Vec<AnimeBoxesFavorite>,
|
|||
searchHistory: Vec<AnimeBoxesSearch>,
|
|||
servers: Vec<AnimeBoxesServer>,
|
|||
}
|
|||
|
|||
struct AnimeBoxesFavorite {
|
|||
dateAdded: String,
|
|||
disableStorage: bool,
|
|||
enforceOriginalImage: bool,
|
|||
file: AnimeBoxesFavoriteFile,
|
|||
has_children: bool,
|
|||
has_comments: bool,
|
|||
has_notes: bool,
|
|||
imageIsVisible: bool,
|
|||
isFavorite: bool,
|
|||
isVisible: bool,
|
|||
jpeg: Option<AnimeBoxesFavoriteJpeg>,
|
|||
md5: String,
|
|||
parent_id: String,
|
|||
ppost_id: String,
|
|||
ppostUrl: String,
|
|||
preview: AnimeBoxesFavoritePreview,
|
|||
rating: String,
|
|||
sample: AnimeBoxesFavoriteSample,
|
|||
score: i16,
|
|||
source: String,
|
|||
tag_artist: String,
|
|||
tag_character: String,
|
|||
tag_copyright: String,
|
|||
tag_general: String,
|
|||
tags: String,
|
|||
}
|
|||
|
|||
struct AnimeBoxesFavoriteFile {
|
|||
contentType: i8,
|
|||
ext: String,
|
|||
height: i16,
|
|||
url: String,
|
|||
width: i16,
|
|||
}
|
|||
|
|||
struct AnimeBoxesFavoriteJpeg {
|
|||
contentType: i8,
|
|||
ext: String,
|
|||
height: i16,
|
|||
url: String,
|
|||
width: i16,
|
|||
}
|
|||
|
|||
struct AnimeBoxesFavoritePreview {
|
|||
contentType: i8,
|
|||
ext: String,
|
|||
height: i16,
|
|||
url: String,
|
|||
width: i16,
|
|||
}
|
|||
|
|||
struct AnimeBoxesFavoriteSample {
|
|||
contentType: i8,
|
|||
ext: String,
|
|||
height: i16,
|
|||
url: String,
|
|||
width: i16,
|
|||
}
|
|||
|
|||
struct AnimeBoxesSearch {
|
|||
itemId: i32,
|
|||
searchDate: String,
|
|||
searchText: String,
|
|||
starred: bool,
|
|||
}
|
|||
|
|||
struct AnimeBoxesServer {
|
|||
apikey: String,
|
|||
isDefault: bool,
|
|||
isSelected: bool,
|
|||
password: String,
|
|||
passwordKey: String,
|
|||
ratingFilterEnabled: bool,
|
|||
realURL: String,
|
|||
serverId: i16,
|
|||
serverName: String,
|
|||
type_: i16,
|
|||
url: String,
|
|||
useNativeAutocomplete: bool,
|
|||
userName: String,
|
|||
}
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue