Type Alias axum_valid::garde::GardeRejection

source ·
pub type GardeRejection<E> = ValidationRejection<Report, E>;
Expand description

GardeRejection is returned when the Garde extractor fails.

Aliased Type§

enum GardeRejection<E> {
    Valid(Report),
    Inner(E),
}

Variants§

§

Valid(Report)

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<Report> for GardeRejection<E>

source§

fn from(value: Report) -> Self

Converts to this type from the input type.