[][src]Struct oxide_auth_rocket::OAuthRequest

pub struct OAuthRequest<'r> { /* fields omitted */ }

Request guard that also buffers OAuth data internally.

Implementations

impl<'r> OAuthRequest<'r>[src]

pub fn new<'a>(request: &'a Request<'r>) -> Self[src]

Create the request data from request headers.

Some oauth methods need additionally the body data which you can attach later.

pub fn add_body(&mut self, data: Data)[src]

Provide the body of the request.

Some, but not all operations, require reading their data from a urlencoded POST body. To simplify the implementation of primitives and handlers, this type is the central request type for both these use cases. When you forget to provide the body to a request, the oauth system will return an error the moment the request is used.

Trait Implementations

impl<'a, 'r> FromRequest<'a, 'r> for OAuthRequest<'r>[src]

type Error = NoError

The associated error to be returned if derivation fails.

impl<'r> WebRequest for OAuthRequest<'r>[src]

type Error = WebError

The error generated from access of malformed or invalid requests.

type Response = OAuthResponse<'r>

The corresponding type of Responses returned from this module.

Auto Trait Implementations

impl<'r> RefUnwindSafe for OAuthRequest<'r>

impl<'r> Send for OAuthRequest<'r>

impl<'r> Sync for OAuthRequest<'r>

impl<'r> Unpin for OAuthRequest<'r>

impl<'r> UnwindSafe for OAuthRequest<'r>

Blanket Implementations

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

impl<T, I> AsResult<T, I> for T where
    I: Input, 

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

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<T> Typeable for T where
    T: Any

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