[−][src]Struct oxide_auth_actix::OAuthResponse
Type implementing WebResponse
and Responder
for use in route handlers
Implementations
impl OAuthResponse
[src]
pub fn get_headers(&self) -> HeaderMap
[src]
Get the headers from OAuthResponse
pub fn get_body(&self) -> Option<String>
[src]
Get the body from OAuthResponse
impl OAuthResponse
[src]
pub fn ok() -> Self
[src]
Create a simple response with no body and a '200 OK' HTTP Status
pub fn content_type(self, content_type: &str) -> Result<Self, WebError>
[src]
Set the ContentType
header on a response
pub fn body(self, body: &str) -> Self
[src]
Set the bodyfor the response
Trait Implementations
impl Clone for OAuthResponse
[src]
fn clone(&self) -> OAuthResponse
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for OAuthResponse
[src]
impl Default for OAuthResponse
[src]
impl Responder for OAuthResponse
[src]
type Error = WebError
The associated error which can be returned.
type Future = Ready<Result<HttpResponse, Self::Error>>
The future response value.
fn respond_to(self, _: &HttpRequest) -> Self::Future
[src]
fn with_status(self, status: StatusCode) -> CustomResponder<Self>
[src]
fn with_header<K, V>(self, key: K, value: V) -> CustomResponder<Self> where
V: IntoHeaderValue,
HeaderName: TryFrom<K>,
<HeaderName as TryFrom<K>>::Error: Into<Error>,
[src]
V: IntoHeaderValue,
HeaderName: TryFrom<K>,
<HeaderName as TryFrom<K>>::Error: Into<Error>,
impl WebResponse for OAuthResponse
[src]
type Error = WebError
The error generated when trying to construct an unhandled or invalid response.
fn ok(&mut self) -> Result<(), Self::Error>
[src]
fn redirect(&mut self, url: Url) -> Result<(), Self::Error>
[src]
fn client_error(&mut self) -> Result<(), Self::Error>
[src]
fn unauthorized(&mut self, kind: &str) -> Result<(), Self::Error>
[src]
fn body_text(&mut self, text: &str) -> Result<(), Self::Error>
[src]
fn body_json(&mut self, json: &str) -> Result<(), Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for OAuthResponse
impl Send for OAuthResponse
impl Sync for OAuthResponse
impl Unpin for OAuthResponse
impl UnwindSafe for OAuthResponse
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>,