hooked/source/config/general.rs

22 lines
421 B
Rust
Raw Normal View History

2022-10-28 10:23:05 +00:00
//! General configuration definitions.
use std::path::PathBuf;
use serde::{Deserialize, Serialize};
/// General Hooked configuration.
#[derive(Debug, Deserialize, Serialize)]
#[serde(default, deny_unknown_fields)]
pub struct General {
/// The directory to use for hooks.
pub directory: PathBuf,
}
impl Default for General {
fn default() -> Self {
Self {
directory: PathBuf::from("hooks"),
}
}
}