[][src]Struct display_as::As

pub struct As<'a, F: Format, T: DisplayAs<F> + ?Sized> { /* fields omitted */ }

Choose to Display this type using a particular Format F.

Methods

impl<'a, F: Format, T: DisplayAs<F>> As<'a, F, T>[src]

pub fn http_response(&self) -> Response<String>[src]

Convert into a [warp::Reply].

Trait Implementations

impl<'a, F: Format, T: DisplayAs<F>> Into<Response> for As<'a, F, T>[src]

impl<'a, F: Format, T: DisplayAs<F> + ?Sized> From<&'a T> for As<'a, F, T>[src]

impl<'a, F: Format, T: DisplayAs<F> + ?Sized> Display for As<'a, F, T>[src]

impl<'a, F: Format, T: 'a + DisplayAs<F>> Responder for As<'a, F, T>[src]

type Item = HttpResponse

The associated item which can be returned.

type Error = Error

The associated error which can be returned.

impl<'a, F: Format, T: 'a + DisplayAs<F>> IntoResponse for As<'a, F, T>[src]

Auto Trait Implementations

impl<'a, F, T: ?Sized> Send for As<'a, F, T> where
    F: Send,
    T: Sync

impl<'a, F, T: ?Sized> Sync for As<'a, F, T> where
    F: Sync,
    T: Sync

Blanket Implementations

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T> Erased for T