[][src]Enum taskserver_protocol::request::RequestHeader

pub enum RequestHeader<'a> {
    Client(&'a str),
    Org(&'a str),
    User(&'a str),
    Key(&'a str),
    Protocol(RequestProtocol),
    Type(RequestType),
    Other(&'a str),
    Subtype(RequestSubtype),
}

Type safe header struct. The relevant headers will be present as fields on the RequestHeaders struct

Variants

Client(&'a str)
Org(&'a str)
User(&'a str)
Key(&'a str)
Protocol(RequestProtocol)
Other(&'a str)

Trait Implementations

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for RequestHeader<'a>

impl<'a> Send for RequestHeader<'a>

impl<'a> Sync for RequestHeader<'a>

impl<'a> Unpin for RequestHeader<'a>

impl<'a> UnwindSafe for RequestHeader<'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.