[][src]Struct oxide_auth_actix::OAuthResource

pub struct OAuthResource { /* fields omitted */ }

Type implementing WebRequest as well as FromRequest for use in guarding resources

This is useful over OAuthRequest since OAuthResource doesn't consume the body of the request upon extraction

Implementations

impl OAuthResource[src]

pub fn new(req: &HttpRequest) -> Result<Self, WebError>[src]

Create a new OAuthResource from an HttpRequest

pub fn into_request(self) -> OAuthRequest[src]

Turn this OAuthResource into an OAuthRequest for processing

Trait Implementations

impl From<OAuthResource> for OAuthRequest[src]

impl FromRequest for OAuthResource[src]

type Error = WebError

The associated error which can be returned.

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

Future that resolves to a Self

type Config = ()

Configuration for this extractor

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