axum-valid is a library that provides data validation extractors for the Axum web framework. It integrates validator, garde and validify, three popular validation crates in the Rust ecosystem, to offer convenient validation and data handling extractors for Axum applications.
I have an enum that would like to define the Validate on it. All the variants have Validate on.
I'm getting this error. Unsupported shape 'enum'. Expected struct with named fields.
Without the Validate, Rust compiler complains about the signature of the handlers. Any workaround here?
I have an enum that would like to define the
Validate
on it. All the variants haveValidate
on. I'm getting this error.Unsupported shape 'enum'. Expected struct with named fields.
Without theValidate
, Rust compiler complains about the signature of the handlers. Any workaround here?