Trait 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>

Source§

type Validate = T

Source§

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

Source§

impl<T> HasValidate for Form<T>

Source§

impl<T> HasValidate for Query<T>

Source§

impl<T> HasValidate for Protobuf<T>

Source§

impl<T> HasValidate for TypedHeader<T>

Source§

impl<T> HasValidate for Cbor<T>

Source§

impl<T> HasValidate for MsgPack<T>

Source§

impl<T> HasValidate for MsgPackRaw<T>

Source§

impl<T> HasValidate for Sonic<T>

Source§

impl<T> HasValidate for Toml<T>

Source§

impl<T> HasValidate for Xml<T>

Source§

impl<T> HasValidate for Yaml<T>

Source§

impl<T> HasValidate for Path<T>

Source§

impl<T> HasValidate for Query<T>

Source§

impl<T> HasValidate for Form<T>

Source§

impl<T> HasValidate for Json<T>

Source§

impl<T> HasValidate for TypedMultipart<T>

Source§

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

Source§

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

Implementors§