Struct oxide_auth_rocket::OAuthResponse
source · pub struct OAuthResponse<'r>(/* private fields */);
Expand description
Response type for Rocket OAuth requests
A simple wrapper type around a simple rocket::Response<'r>
that implements WebResponse
.
Implementations§
source§impl<'r> OAuthResponse<'r>
impl<'r> OAuthResponse<'r>
sourcepub fn from_response(response: Response<'r>) -> Self
pub fn from_response(response: Response<'r>) -> Self
Create a new OAuthResponse<'r>
from an existing rocket::Response<'r>
Trait Implementations§
source§impl<'r> Debug for OAuthResponse<'r>
impl<'r> Debug for OAuthResponse<'r>
source§impl<'r> Default for OAuthResponse<'r>
impl<'r> Default for OAuthResponse<'r>
source§impl<'r> From<Response<'r>> for OAuthResponse<'r>
impl<'r> From<Response<'r>> for OAuthResponse<'r>
source§impl<'r> Into<Response<'r>> for OAuthResponse<'r>
impl<'r> Into<Response<'r>> for OAuthResponse<'r>
source§impl<'r> Responder<'r> for OAuthResponse<'r>
impl<'r> Responder<'r> for OAuthResponse<'r>
source§impl<'r> WebResponse for OAuthResponse<'r>
impl<'r> WebResponse for OAuthResponse<'r>
§type Error = WebError
type Error = WebError
The error generated when trying to construct an unhandled or invalid response.
source§fn redirect(&mut self, url: Url) -> Result<(), Self::Error>
fn redirect(&mut self, url: Url) -> Result<(), Self::Error>
A response which will redirect the user-agent to which the response is issued.
Set the response status to 401 and add a
WWW-Authenticate
header.Auto Trait Implementations§
impl<'r> Freeze for OAuthResponse<'r>
impl<'r> !RefUnwindSafe for OAuthResponse<'r>
impl<'r> !Send for OAuthResponse<'r>
impl<'r> !Sync for OAuthResponse<'r>
impl<'r> Unpin for OAuthResponse<'r>
impl<'r> !UnwindSafe for OAuthResponse<'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