Trait axum_valid::HasValidate

source ·
pub trait HasValidate {
    type Validate;

    // Required method
    fn get_validate(&self) -> &Self::Validate;
}
Expand description

Trait for types that can supply a reference that can be validated.

Extractor types T that implement this trait can be used with Valid, Garde or Validated.

Required Associated Types§

source

type Validate

Inner type that can be validated for correctness

Required Methods§

source

fn get_validate(&self) -> &Self::Validate

Get the inner value

Implementations on Foreign Types§

source§

impl<T> HasValidate for Cached<T>

§

type Validate = T

source§

fn get_validate(&self) -> &Self::Validate

source§

impl<T> HasValidate for Form<T>

§

type Validate = T

source§

fn get_validate(&self) -> &T

source§

impl<T> HasValidate for Query<T>

§

type Validate = T

source§

fn get_validate(&self) -> &T

source§

impl<T> HasValidate for Protobuf<T>

§

type Validate = T

source§

fn get_validate(&self) -> &T

source§

impl<T> HasValidate for TypedHeader<T>

§

type Validate = T

source§

fn get_validate(&self) -> &T

source§

impl<T> HasValidate for Cbor<T>

§

type Validate = T

source§

fn get_validate(&self) -> &T

source§

impl<T> HasValidate for MsgPack<T>

§

type Validate = T

source§

fn get_validate(&self) -> &T

source§

impl<T> HasValidate for MsgPackRaw<T>

§

type Validate = T

source§

fn get_validate(&self) -> &T

source§

impl<T> HasValidate for Sonic<T>

§

type Validate = T

source§

fn get_validate(&self) -> &T

source§

impl<T> HasValidate for Toml<T>

§

type Validate = T

source§

fn get_validate(&self) -> &T

source§

impl<T> HasValidate for Xml<T>

§

type Validate = T

source§

fn get_validate(&self) -> &T

source§

impl<T> HasValidate for Yaml<T>

§

type Validate = T

source§

fn get_validate(&self) -> &T

source§

impl<T> HasValidate for Path<T>

§

type Validate = T

source§

fn get_validate(&self) -> &T

source§

impl<T> HasValidate for Query<T>

§

type Validate = T

source§

fn get_validate(&self) -> &T

source§

impl<T> HasValidate for Form<T>

§

type Validate = T

source§

fn get_validate(&self) -> &T

source§

impl<T> HasValidate for Json<T>

§

type Validate = T

source§

fn get_validate(&self) -> &T

source§

impl<T> HasValidate for TypedMultipart<T>

§

type Validate = T

source§

fn get_validate(&self) -> &T

source§

impl<T, R> HasValidate for WithRejection<T, R>

§

type Validate = T

source§

fn get_validate(&self) -> &T

source§

impl<T, R> HasValidate for BaseMultipart<T, R>

§

type Validate = T

source§

fn get_validate(&self) -> &T

Implementors§