1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* 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};
/// TokenResponseRefreshToken : A Tapis refresh token object.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TokenResponseRefreshToken {
/// The actual refresh token as a JWT
#[serde(rename = "refresh_token", skip_serializing_if = "Option::is_none")]
pub refresh_token: Option<String>,
/// The time, as a string in UTC, when the token expires.
#[serde(rename = "expires_at", skip_serializing_if = "Option::is_none")]
pub expires_at: Option<String>,
/// 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>,
/// Unique identifier for the token
#[serde(rename = "jti", skip_serializing_if = "Option::is_none")]
pub jti: Option<String>,
}
impl TokenResponseRefreshToken {
/// A Tapis refresh token object.
pub fn new() -> TokenResponseRefreshToken {
TokenResponseRefreshToken {
refresh_token: None,
expires_at: None,
expires_in: None,
jti: None,
}
}
}