summaryrefslogtreecommitdiffstats
path: root/src/config/raw/mimetype/registry.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/raw/mimetype/registry.rs')
-rw-r--r--src/config/raw/mimetype/registry.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/config/raw/mimetype/registry.rs b/src/config/raw/mimetype/registry.rs
new file mode 100644
index 0000000..0f54d46
--- /dev/null
+++ b/src/config/raw/mimetype/registry.rs
@@ -0,0 +1,19 @@
+use serde::Deserialize;
+use std::collections::HashMap;
+
+use crate::config::clean::mimetype::ProgramEntry;
+
+use super::{ExtensionAppListRaw, MimetypeAppListRaw};
+
+pub type ExtensionRegistryRaw = HashMap<String, ExtensionAppListRaw>;
+pub type MimetypeRegistryRaw = HashMap<String, MimetypeAppListRaw>;
+
+#[derive(Debug, Deserialize)]
+pub struct AppProgramRegistryRaw {
+ #[serde(default, rename = "class")]
+ pub _class: HashMap<String, Vec<ProgramEntry>>,
+ #[serde(default, rename = "extension")]
+ pub _extension: ExtensionRegistryRaw,
+ #[serde(default, rename = "mimetype")]
+ pub _mimetype: MimetypeRegistryRaw,
+}