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