use crate::kernel::hash::Hash;
use std::path::{Path, PathBuf};
#[derive(Debug, Clone, Default)]
pub struct Audit {
pub hash: Option<Hash>,
}
#[derive(Debug)]
pub struct Settings {
pub basedir: Box<Path>,
pub accounts: Option<Vec<String>>,
pub audit: Audit,
}
impl Settings {
pub fn default_audit() -> Self {
Settings {
basedir: PathBuf::default().into_boxed_path(),
accounts: None,
audit: Audit {
hash: Some(Hash::default()),
},
}
}
}
impl Default for Settings {
fn default() -> Self {
Settings {
basedir: PathBuf::default().into_boxed_path(),
accounts: None,
audit: Audit { hash: None },
}
}
}