12 lines
264 B
Rust
12 lines
264 B
Rust
use kaptan_config_derive::ConfigValidate;
|
|
|
|
#[derive(ConfigValidate)]
|
|
struct MixedSectionAndScalar {
|
|
#[config(section)]
|
|
child: u32,
|
|
#[config(id = 1, key = "scalar", unit = "count", default = 1, range(min = 0, max = 2))]
|
|
scalar: u32,
|
|
}
|
|
|
|
fn main() {}
|