use dade::{model, Result}; fn validate_fn(value: u32) -> Result { Ok(value) } #[model] enum TestModel { Value( #[field(validate = validate_fn)] u32 ), } fn main() {}