tapis-authenticator 0.1.1

REST API and web server providing authentication for a Tapis v3 instance.
Documentation
/*
 * Authenticator
 *
 * REST API and web server providing authentication for a Tapis v3 instance.
 *
 * The version of the OpenAPI document: 1
 * Contact: cicsupport@tacc.utexas.edu
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// V2TokenResponse : A v2 token response object.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct V2TokenResponse {
    /// The amount of time, in seconds, when the token will expire.
    #[serde(rename = "expires_in", skip_serializing_if = "Option::is_none")]
    pub expires_in: Option<i32>,
    /// The refresh token associated with the v2 token
    #[serde(rename = "refresh_token", skip_serializing_if = "Option::is_none")]
    pub refresh_token: Option<String>,
    /// Unique identifier for the token
    #[serde(rename = "access_token", skip_serializing_if = "Option::is_none")]
    pub access_token: Option<String>,
}

impl V2TokenResponse {
    /// A v2 token response object.
    pub fn new() -> V2TokenResponse {
        V2TokenResponse {
            expires_in: None,
            refresh_token: None,
            access_token: None,
        }
    }
}