[−][src]Struct oxide_auth_actix::OAuthRequest
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]
fn clone(&self) -> OAuthRequest
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for OAuthRequest
[src]
impl From<OAuthResource> for OAuthRequest
[src]
fn from(o: OAuthResource) -> Self
[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
fn from_request(req: &HttpRequest, payload: &mut Payload) -> Self::Future
[src]
fn extract(req: &HttpRequest) -> Self::Future
[src]
fn configure<F>(f: F) -> Self::Config where
F: FnOnce(Self::Config) -> Self::Config,
[src]
F: FnOnce(Self::Config) -> Self::Config,
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.
fn query(
&mut self
) -> Result<Cow<'_, dyn QueryParameter + 'static>, Self::Error>
[src]
&mut self
) -> Result<Cow<'_, dyn QueryParameter + 'static>, Self::Error>
fn urlbody(
&mut self
) -> Result<Cow<'_, dyn QueryParameter + 'static>, Self::Error>
[src]
&mut self
) -> Result<Cow<'_, dyn QueryParameter + 'static>, Self::Error>
fn authheader(&mut self) -> Result<Option<Cow<'_, str>>, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for OAuthRequest
impl Send for OAuthRequest
impl Sync for OAuthRequest
impl Unpin for OAuthRequest
impl UnwindSafe for OAuthRequest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,