pub struct OAuthRequest { /* private fields */ }
Expand description
Type implementing WebRequest
as well as FromRequest
for use in route handlers
This type consumes the body of the Request upon extraction, so be careful not to use it in places you also expect an application payload
Implementations§
Source§impl OAuthRequest
impl OAuthRequest
Fetch the authorization header from the request
Sourcepub fn query(&self) -> Option<&NormalizedParameter>
pub fn query(&self) -> Option<&NormalizedParameter>
Fetch the query for this request
Sourcepub fn query_mut(&mut self) -> Option<&mut NormalizedParameter>
pub fn query_mut(&mut self) -> Option<&mut NormalizedParameter>
Fetch the query mutably
Sourcepub fn body(&self) -> Option<&NormalizedParameter>
pub fn body(&self) -> Option<&NormalizedParameter>
Fetch the body of the request
Trait Implementations§
Source§impl Clone for OAuthRequest
impl Clone for OAuthRequest
Source§fn clone(&self) -> OAuthRequest
fn clone(&self) -> OAuthRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OAuthRequest
impl Debug for OAuthRequest
Source§impl Default for OAuthRequest
impl Default for OAuthRequest
Source§fn default() -> OAuthRequest
fn default() -> OAuthRequest
Returns the “default value” for a type. Read more
Source§impl From<OAuthResource> for OAuthRequest
impl From<OAuthResource> for OAuthRequest
Source§fn from(r: OAuthResource) -> OAuthRequest
fn from(r: OAuthResource) -> OAuthRequest
Converts to this type from the input type.
Source§impl<S> FromRequest<S> for OAuthRequest
impl<S> FromRequest<S> for OAuthRequest
Source§impl WebRequest for OAuthRequest
impl WebRequest for OAuthRequest
Source§type Response = OAuthResponse
type Response = OAuthResponse
The corresponding type of Responses returned from this module.
Source§fn query(
&mut self,
) -> Result<Cow<'_, dyn QueryParameter + 'static>, Self::Error>
fn query( &mut self, ) -> Result<Cow<'_, dyn QueryParameter + 'static>, Self::Error>
Retrieve a parsed version of the url query. Read more
Auto Trait Implementations§
impl Freeze for OAuthRequest
impl RefUnwindSafe for OAuthRequest
impl Send for OAuthRequest
impl Sync for OAuthRequest
impl Unpin for OAuthRequest
impl UnwindSafe for OAuthRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more