[][src]Enum tide_validator::HttpField

pub enum HttpField<'a> {
    Param(&'a str),
    QueryParam(&'a str),
    Header(&'a str),
    Cookie(&'a str),
}

Enum to indicate on which HTTP field you want to make validations

Variants

Param(&'a str)

To validate a path parameter. Example in URL /test/:name you can use HttpField::Param("name")

QueryParam(&'a str)

To validate a query parameter. Example in URL /test?name=test you can use HttpField::QueryParam("name")

Header(&'a str)

To validate a header. Example HttpField::Header("X-My-Custom-Header")

Cookie(&'a str)

To validate a cookie. Example HttpField::Cookie("session")

Trait Implementations

impl<'a> Clone for HttpField<'a>[src]

impl<'a> Debug for HttpField<'a>[src]

impl<'a> Eq for HttpField<'a>[src]

impl<'a> Hash for HttpField<'a>[src]

impl<'a> PartialEq<HttpField<'a>> for HttpField<'a>[src]

impl<'a> StructuralEq for HttpField<'a>[src]

impl<'a> StructuralPartialEq for HttpField<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for HttpField<'a>

impl<'a> Send for HttpField<'a>

impl<'a> Sync for HttpField<'a>

impl<'a> Unpin for HttpField<'a>

impl<'a> UnwindSafe for HttpField<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.