fluere_config/types.rs
1use serde::{Deserialize, Serialize};
2
3use std::collections::BTreeMap;
4use std::collections::HashMap;
5
6pub type Plugins = BTreeMap<String, Plugin>;
7
8#[derive(Debug, Deserialize, Serialize, Clone, Default)]
9pub struct Plugin {
10 pub enabled: bool,
11 pub path: Option<String>, // for unpublished plugins
12 pub extra_arguments: Option<HashMap<String, String>>,
13}
14
15#[derive(Debug, Deserialize, Serialize, Clone, Default)]
16pub struct Config {
17 pub plugins: Plugins,
18}