pub struct RedirectResponse { /* private fields */ }
Implementations§
Source§impl RedirectResponse
impl RedirectResponse
Sourcepub fn new<T: Into<String>>(code: T, state: T) -> Self
pub fn new<T: Into<String>>(code: T, state: T) -> Self
Create a new RedirectResponse from given code and state
Sourcepub fn try_from_uri(uri: &Uri) -> Result<RedirectResponse, OauthError>
pub fn try_from_uri(uri: &Uri) -> Result<RedirectResponse, OauthError>
Create a RedirectResponse from the given OAuth2 redirect result
This function just requires a reference to a Uri, that includes
the code
and state
parameters
Trait Implementations§
Source§impl Debug for RedirectResponse
impl Debug for RedirectResponse
Source§impl<'de> Deserialize<'de> for RedirectResponse
impl<'de> Deserialize<'de> for RedirectResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RedirectResponse
impl RefUnwindSafe for RedirectResponse
impl Send for RedirectResponse
impl Sync for RedirectResponse
impl Unpin for RedirectResponse
impl UnwindSafe for RedirectResponse
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