|
|
@ -45,6 +45,8 @@ pub struct FileMetadataInfo {
|
|
|
|
pub width: Option<u32>,
|
|
|
|
pub width: Option<u32>,
|
|
|
|
pub height: Option<u32>,
|
|
|
|
pub height: Option<u32>,
|
|
|
|
pub duration: Option<u64>,
|
|
|
|
pub duration: Option<u64>,
|
|
|
|
|
|
|
|
pub time_modified: Option<u64>,
|
|
|
|
|
|
|
|
pub file_services: FileMetadataServices,
|
|
|
|
pub has_audio: Option<bool>,
|
|
|
|
pub has_audio: Option<bool>,
|
|
|
|
pub num_frames: Option<u64>,
|
|
|
|
pub num_frames: Option<u64>,
|
|
|
|
pub num_words: Option<u64>,
|
|
|
|
pub num_words: Option<u64>,
|
|
|
@ -54,6 +56,7 @@ pub struct FileMetadataInfo {
|
|
|
|
pub known_urls: Vec<String>,
|
|
|
|
pub known_urls: Vec<String>,
|
|
|
|
pub service_names_to_statuses_to_tags: HashMap<String, HashMap<String, Vec<String>>>,
|
|
|
|
pub service_names_to_statuses_to_tags: HashMap<String, HashMap<String, Vec<String>>>,
|
|
|
|
pub service_names_to_statuses_to_display_tags: HashMap<String, HashMap<String, Vec<String>>>,
|
|
|
|
pub service_names_to_statuses_to_display_tags: HashMap<String, HashMap<String, Vec<String>>>,
|
|
|
|
|
|
|
|
pub service_keys_to_statuses_to_display_tags: HashMap<String, HashMap<String, Vec<String>>>,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug)]
|
|
|
|
#[derive(Clone, Debug)]
|
|
|
@ -74,6 +77,23 @@ pub struct FileRecord {
|
|
|
|
pub mime_type: String,
|
|
|
|
pub mime_type: String,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Clone, Default, Debug, Deserialize)]
|
|
|
|
|
|
|
|
pub struct FileMetadataServices {
|
|
|
|
|
|
|
|
pub current: HashMap<String, FileMetadataServiceCurrent>,
|
|
|
|
|
|
|
|
pub deleted: HashMap<String, FileMetadataServiceDeleted>,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, Deserialize)]
|
|
|
|
|
|
|
|
pub struct FileMetadataServiceCurrent {
|
|
|
|
|
|
|
|
pub time_imported: u64,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, Deserialize)]
|
|
|
|
|
|
|
|
pub struct FileMetadataServiceDeleted {
|
|
|
|
|
|
|
|
pub time_deleted: u64,
|
|
|
|
|
|
|
|
pub time_imported: u64,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, Deserialize)]
|
|
|
|
#[derive(Clone, Debug, Deserialize)]
|
|
|
|
pub struct PageInformation {
|
|
|
|
pub struct PageInformation {
|
|
|
|
pub name: String,
|
|
|
|
pub name: String,
|
|
|
|