[][src]Struct oxide_auth_actix::OAuthResponse

pub struct OAuthResponse { /* fields omitted */ }

Type implementing WebResponse and Responder for use in route handlers

Implementations

impl OAuthResponse[src]

pub fn get_headers(&self) -> HeaderMap[src]

Get the headers from OAuthResponse

pub fn get_body(&self) -> Option<String>[src]

Get the body from OAuthResponse

impl OAuthResponse[src]

pub fn ok() -> Self[src]

Create a simple response with no body and a '200 OK' HTTP Status

pub fn content_type(self, content_type: &str) -> Result<Self, WebError>[src]

Set the ContentType header on a response

pub fn body(self, body: &str) -> Self[src]

Set the bodyfor the response

Trait Implementations

impl Clone for OAuthResponse[src]

impl Debug for OAuthResponse[src]

impl Default for OAuthResponse[src]

impl Responder for OAuthResponse[src]

type Error = WebError

The associated error which can be returned.

type Future = Ready<Result<HttpResponse, Self::Error>>

The future response value.

impl WebResponse for OAuthResponse[src]

type Error = WebError

The error generated when trying to construct an unhandled or invalid response.

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,