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