hooked_config/config/
general.rs

1//! General configuration definitions.
2
3use std::path::PathBuf;
4
5use serde::{Deserialize, Serialize};
6
7/// General Hooked configuration.
8#[derive(Debug, Deserialize, Serialize)]
9#[serde(default, deny_unknown_fields)]
10pub struct General {
11  /// Path to the Hooked configuration file.
12  pub config: PathBuf,
13
14  /// The directory to use for hooks.
15  pub directory: PathBuf,
16}
17
18impl Default for General {
19  fn default() -> Self {
20    Self {
21      config: PathBuf::from("Hooked.toml"),
22      directory: PathBuf::from("hooks"),
23    }
24  }
25}