[][src]Struct oxide_auth::frontends::actix::request::OAuthRequest

pub struct OAuthRequest { /* fields omitted */ }

Sendable struct implementing WebRequest.

Methods

impl OAuthRequest[src]

pub fn authorization_code(self) -> AuthorizationCode[src]

Utility method to turn this request into an actix message.

The resulting message can be sent to an Endpoint actor to ask for an authorization code.

pub fn access_token(self) -> AccessToken[src]

Utility method to turn this request into an actix message.

The resulting message can be sent to an Endpoint actor to trade an authorization code again an access token.

pub fn resource(self) -> Resource[src]

Utility method to turn this request into an actix message.

The resulting message can be sent to an Endpoint actor to assert the presented authorization token has appropriate permission to access some resource.

Trait Implementations

impl WebRequest for OAuthRequest[src]

type Error = OAuthError

The error generated from access of malformed or invalid requests.

type Response = OAuthResponse

The corresponding type of Responses returned from this module.

impl Clone for OAuthRequest[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for OAuthRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> UnsafeAny for T where
    T: Any

impl<T> IntoCollection<T> for T

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