Type Alias axum_valid::validator::ValidRejection
source · pub type ValidRejection<E> = ValidationRejection<ValidationErrors, E>;
Expand description
ValidRejection
is returned when the Valid
or ValidEx
extractor fails.
Aliased Type§
enum ValidRejection<E> {
Valid(ValidationErrors),
Inner(E),
}
Variants§
Valid(ValidationErrors)
Valid
variant captures errors related to the validation logic.
Inner(E)
Inner
variant represents potential errors that might occur within the inner extractor.
Trait Implementations§
source§impl<E> From<ValidationErrors> for ValidRejection<E>
impl<E> From<ValidationErrors> for ValidRejection<E>
source§fn from(value: ValidationErrors) -> Self
fn from(value: ValidationErrors) -> Self
Converts to this type from the input type.