5cdec46800
This will be necessary to handle including other configs from the config to use as these configs will not be copied.
18 lines
431 B
Rust
18 lines
431 B
Rust
use std::collections::BTreeMap;
|
|
|
|
pub mod general;
|
|
pub mod file;
|
|
pub mod package;
|
|
pub mod user;
|
|
|
|
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
|
pub struct Config {
|
|
pub general: general::GeneralConfig,
|
|
#[serde(default)]
|
|
pub packages: BTreeMap<String, package::PackageConfig>,
|
|
#[serde(default)]
|
|
pub files: Vec<file::FileConfig>,
|
|
#[serde(default)]
|
|
pub users: BTreeMap<String, user::UserConfig>,
|
|
}
|