pub struct CodeGrantResponse {
pub code: AuthorizationCode,
pub state: CsrfToken,
}Expand description
Represents the parameters in the redirect url, when fetched in the browser.
Fields§
§code: AuthorizationCodeCode used to perform token exchange.
state: CsrfTokenState from the grant request. Must be verified by the caller.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CodeGrantResponse
impl<'de> Deserialize<'de> for CodeGrantResponse
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 CodeGrantResponse
impl RefUnwindSafe for CodeGrantResponse
impl Send for CodeGrantResponse
impl Sync for CodeGrantResponse
impl Unpin for CodeGrantResponse
impl UnwindSafe for CodeGrantResponse
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