10 lines
197 B
Rust
10 lines
197 B
Rust
use kaptan_config_derive::ConfigValidate;
|
|
|
|
#[derive(ConfigValidate)]
|
|
struct ZeroDefault {
|
|
#[config(id = 1, key = "value", unit = "count", default = 0, nonzero)]
|
|
value: u32,
|
|
}
|
|
|
|
fn main() {}
|