Trait axum_valid::validator::HasValidateArgs
source · pub trait HasValidateArgs<'v> {
type ValidateArgs: ValidateArgs<'v>;
// Required method
fn get_validate_args(&self) -> &Self::ValidateArgs;
}
Expand description
Trait for types that can supply a reference that can be validated using arguments.
Extractor types T
that implement this trait can be used with ValidEx
.
Required Associated Types§
sourcetype ValidateArgs: ValidateArgs<'v>
type ValidateArgs: ValidateArgs<'v>
Inner type that can be validated using arguments
Required Methods§
sourcefn get_validate_args(&self) -> &Self::ValidateArgs
fn get_validate_args(&self) -> &Self::ValidateArgs
Get the inner value