nile_client_rs/models/
developer_google_o_auth_response.rs

1/*
2 * Nile API
3 *
4 * Making SaaS chill.
5 *
6 * The version of the OpenAPI document: 0.1.0-fdd7cd5
7 * Contact: support@thenile.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct DeveloperGoogleOAuthResponse {
13    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
14    pub user: Option<Box<crate::models::User>>,
15    /// JWT authentication token. Most Nile operations the caller to pass a valid token in Authorization HTTP header using Bearer schema
16    #[serde(rename = "token")]
17    pub token: String,
18}
19
20impl DeveloperGoogleOAuthResponse {
21    pub fn new(token: String) -> DeveloperGoogleOAuthResponse {
22        DeveloperGoogleOAuthResponse { user: None, token }
23    }
24}
25
26use serde::{Deserialize, Serialize};