pub struct WrappedRequest<R: WebRequest> { /* private fields */ }
Implementations§
Source§impl<R: WebRequest> WrappedRequest<R>
impl<R: WebRequest> WrappedRequest<R>
Trait Implementations§
Source§impl<R: Clone + WebRequest> Clone for WrappedRequest<R>
impl<R: Clone + WebRequest> Clone for WrappedRequest<R>
Source§fn clone(&self) -> WrappedRequest<R>
fn clone(&self) -> WrappedRequest<R>
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<R: WebRequest> Request for WrappedRequest<R>
impl<R: WebRequest> Request for WrappedRequest<R>
Source§fn valid(&self) -> bool
fn valid(&self) -> bool
Received request might not be encoded correctly. This method gives implementors the chance
to signal that a request was received but its encoding was generally malformed. If this is
the case, then no other attribute will be queried. This method exists mainly to make
frontends straightforward by not having them handle special cases for malformed requests.
Source§fn code(&self) -> Option<Cow<'_, str>>
fn code(&self) -> Option<Cow<'_, str>>
The authorization code grant for which an access token is wanted.
User:password of a basic authorization header.
Source§fn client_id(&self) -> Option<Cow<'_, str>>
fn client_id(&self) -> Option<Cow<'_, str>>
The client_id, optional parameter for public clients.
Source§fn redirect_uri(&self) -> Option<Cow<'_, str>>
fn redirect_uri(&self) -> Option<Cow<'_, str>>
Valid request have the redirect url used to request the authorization code grant.
Source§fn grant_type(&self) -> Option<Cow<'_, str>>
fn grant_type(&self) -> Option<Cow<'_, str>>
Valid requests have this set to “authorization_code”
Source§fn extension(&self, key: &str) -> Option<Cow<'_, str>>
fn extension(&self, key: &str) -> Option<Cow<'_, str>>
Retrieve an additional parameter used in an extension
Source§fn allow_credentials_in_body(&self) -> bool
fn allow_credentials_in_body(&self) -> bool
Credentials in body should only be enabled if use of HTTP Basic is not possible. Read more
Auto Trait Implementations§
impl<R> Freeze for WrappedRequest<R>
impl<R> RefUnwindSafe for WrappedRequest<R>
impl<R> Send for WrappedRequest<R>
impl<R> Sync for WrappedRequest<R>
impl<R> Unpin for WrappedRequest<R>
impl<R> UnwindSafe for WrappedRequest<R>
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