12 lines
259 B
Rust
12 lines
259 B
Rust
use kaptan_config_derive::ConfigValidate;
|
|
|
|
#[derive(ConfigValidate)]
|
|
struct RootBooleanConfig {
|
|
#[config(id = 1, key = "enabled", unit = "bool", default = true)]
|
|
enabled: bool,
|
|
}
|
|
|
|
fn main() {
|
|
assert_eq!(RootBooleanConfig::DESCRIPTORS.len(), 1);
|
|
}
|