Struct oxide_auth_actix::OAuthResponse
source · pub struct OAuthResponse { /* private fields */ }
Expand description
Type implementing WebResponse
and Responder
for use in route handlers
Implementations§
source§impl OAuthResponse
impl OAuthResponse
source§impl OAuthResponse
impl OAuthResponse
Trait Implementations§
source§impl Clone for OAuthResponse
impl Clone for OAuthResponse
source§fn clone(&self) -> OAuthResponse
fn clone(&self) -> OAuthResponse
Returns a copy 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 OAuthResponse
impl Debug for OAuthResponse
source§impl Default for OAuthResponse
impl Default for OAuthResponse
source§impl Responder for OAuthResponse
impl Responder for OAuthResponse
type Body = BoxBody
source§fn respond_to(self, _: &HttpRequest) -> HttpResponse
fn respond_to(self, _: &HttpRequest) -> HttpResponse
Convert self to
HttpResponse
.source§impl WebResponse for OAuthResponse
impl WebResponse for OAuthResponse
§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 Freeze for OAuthResponse
impl RefUnwindSafe for OAuthResponse
impl Send for OAuthResponse
impl Sync for OAuthResponse
impl Unpin for OAuthResponse
impl UnwindSafe for OAuthResponse
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