[][src]Struct oxide_auth_actix::OAuthRequest

pub struct OAuthRequest { /* fields omitted */ }

Type implementing WebRequest as well as FromRequest for use in route handlers

This type consumes the body of the HttpRequest upon extraction, so be careful not to use it in places you also expect an application payload

Implementations

impl OAuthRequest[src]

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

Create a new OAuthRequest from an HttpRequest and Payload

pub fn authorization_header(&self) -> Option<&str>[src]

Fetch the authorization header from the request

pub fn query(&self) -> Option<&NormalizedParameter>[src]

Fetch the query for this request

pub fn query_mut(&mut self) -> Option<&mut NormalizedParameter>[src]

Fetch the query mutably

pub fn body(&self) -> Option<&NormalizedParameter>[src]

Fetch the body of the request

Trait Implementations

impl Clone for OAuthRequest[src]

impl Debug for OAuthRequest[src]

impl From<OAuthResource> for OAuthRequest[src]

impl FromRequest for OAuthRequest[src]

type Error = WebError

The associated error which can be returned.

type Future = LocalBoxFuture<'static, Result<Self, Self::Error>>

Future that resolves to a Self

type Config = ()

Configuration for this extractor

impl WebRequest for OAuthRequest[src]

type Error = WebError

The error generated from access of malformed or invalid requests.

type Response = OAuthResponse

The corresponding type of Responses returned from this module.

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