Skip to main content

ValidateRouteExt

Trait ValidateRouteExt 

Source
pub trait ValidateRouteExt {
    // Required methods
    fn validate_body<T>(&mut self) -> &mut Self
       where T: VldParse + Send + Sync + 'static + ValidateSchema;
    fn validate_query<T>(&mut self) -> &mut Self
       where T: VldParse + Send + Sync + 'static + ValidateSchema;
    fn validate_params<T>(&mut self) -> &mut Self
       where T: VldParse + Send + Sync + 'static + ValidateSchema;
    fn validate_all<T>(&mut self) -> &mut Self
       where T: VldParse + Send + Sync + 'static + ValidateSchema;
    fn validate_form<T>(&mut self) -> &mut Self
       where T: VldParse + Send + Sync + 'static + ValidateSchema;
}
Expand description

Sugar: attach Validate + ValidateHook (+ OpenAPI schema when enabled).

Required Methods§

Source

fn validate_body<T>(&mut self) -> &mut Self
where T: VldParse + Send + Sync + 'static + ValidateSchema,

Source

fn validate_query<T>(&mut self) -> &mut Self
where T: VldParse + Send + Sync + 'static + ValidateSchema,

Source

fn validate_params<T>(&mut self) -> &mut Self
where T: VldParse + Send + Sync + 'static + ValidateSchema,

Source

fn validate_all<T>(&mut self) -> &mut Self
where T: VldParse + Send + Sync + 'static + ValidateSchema,

Source

fn validate_form<T>(&mut self) -> &mut Self
where T: VldParse + Send + Sync + 'static + ValidateSchema,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ValidateRouteExt for App

Source§

fn validate_body<T>(&mut self) -> &mut Self
where T: VldParse + Send + Sync + 'static + ValidateSchema,

Source§

fn validate_query<T>(&mut self) -> &mut Self
where T: VldParse + Send + Sync + 'static + ValidateSchema,

Source§

fn validate_params<T>(&mut self) -> &mut Self
where T: VldParse + Send + Sync + 'static + ValidateSchema,

Source§

fn validate_all<T>(&mut self) -> &mut Self
where T: VldParse + Send + Sync + 'static + ValidateSchema,

Source§

fn validate_form<T>(&mut self) -> &mut Self
where T: VldParse + Send + Sync + 'static + ValidateSchema,

Source§

impl ValidateRouteExt for Router

Source§

fn validate_body<T>(&mut self) -> &mut Self
where T: VldParse + Send + Sync + 'static + ValidateSchema,

Source§

fn validate_query<T>(&mut self) -> &mut Self
where T: VldParse + Send + Sync + 'static + ValidateSchema,

Source§

fn validate_params<T>(&mut self) -> &mut Self
where T: VldParse + Send + Sync + 'static + ValidateSchema,

Source§

fn validate_all<T>(&mut self) -> &mut Self
where T: VldParse + Send + Sync + 'static + ValidateSchema,

Source§

fn validate_form<T>(&mut self) -> &mut Self
where T: VldParse + Send + Sync + 'static + ValidateSchema,

Implementors§