24 lines
615 B
Rust
24 lines
615 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Serialize, Deserialize)]
|
|
pub struct GoogleUser {
|
|
pub id: String,
|
|
pub email: String,
|
|
#[serde(default)]
|
|
pub verified_email: bool,
|
|
pub name: Option<String>,
|
|
pub given_name: Option<String>,
|
|
pub family_name: Option<String>,
|
|
pub picture: Option<String>,
|
|
pub locale: Option<String>,
|
|
}
|
|
|
|
#[derive(Debug, Serialize, Deserialize)]
|
|
pub struct GoogleTokenResponse {
|
|
pub access_token: String,
|
|
pub expires_in: u64,
|
|
pub refresh_token: Option<String>,
|
|
pub scope: String,
|
|
pub token_type: String,
|
|
pub id_token: String,
|
|
} |