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