1 2 3 4 5 6 7 8 9 10 11 12 13 14
pub type Foo = FooType; #[derive(Clone, Debug, Default, Eq, PartialEq)] pub struct FooType { pub min: i32, pub max: i32, pub value: EnumType, } #[derive(Clone, Debug, Default, Eq, PartialEq)] pub enum EnumType { Off, On, #[default] Auto, }