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