pub type ConfigValidator = Arc<dyn Fn(&str) -> Result<(), String> + Send + Sync>;Expand description
Validates candidate config.toml content before it is persisted. Returns
Err(reason) if the content would not load as a valid config. Injected from
the binary layer (which can see aegis-core::Config) — aegis-tools cannot
depend on aegis-core (that would be a dependency cycle).
Aliased Type§
pub struct ConfigValidator { /* private fields */ }