pub struct AuthGoogleRequest {
pub code: String,
pub redirect_uri: String,
}Expand description
Google OAuth callback payload from the SPA.
JSON schema
{
"title": "AuthGoogleRequest",
"description": "Google OAuth callback payload from the SPA.",
"examples": [
{
"code": "4/0Afg...",
"redirect_uri": "https://app.harmont.dev/auth/google/callback"
}
],
"type": "object",
"required": [
"code",
"redirect_uri"
],
"properties": {
"code": {
"description": "The authorization code returned by Google to the
SPA.",
"type": "string"
},
"redirect_uri": {
"description": "The redirect URI the SPA used; must match the OAuth
client config.",
"type": "string"
}
}
}Fields§
§code: StringThe authorization code returned by Google to the SPA.
redirect_uri: StringThe redirect URI the SPA used; must match the OAuth client config.
Trait Implementations§
Source§impl Clone for AuthGoogleRequest
impl Clone for AuthGoogleRequest
Source§fn clone(&self) -> AuthGoogleRequest
fn clone(&self) -> AuthGoogleRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AuthGoogleRequest
impl Debug for AuthGoogleRequest
Source§impl<'de> Deserialize<'de> for AuthGoogleRequest
impl<'de> Deserialize<'de> for AuthGoogleRequest
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 AuthGoogleRequest
impl RefUnwindSafe for AuthGoogleRequest
impl Send for AuthGoogleRequest
impl Sync for AuthGoogleRequest
impl Unpin for AuthGoogleRequest
impl UnsafeUnpin for AuthGoogleRequest
impl UnwindSafe for AuthGoogleRequest
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