use kaptan_config_derive::Config; #[derive(Config)] struct NonzeroBool { #[config(id = 1, key = "value", unit = "")] #[config(nonzero)] value: bool, } #[derive(Config)] struct RangedBool { #[config(id = 1, key = "value", unit = "")] #[config(range(min = 0, max = 1))] value: bool, } #[derive(Config)] struct FiniteBool { #[config(id = 1, key = "value", unit = "")] #[config(finite)] value: bool, } fn main() {}