Skip to main content

tapis_authenticator/models/
token_response_refresh_token.rs

1/*
2 * Authenticator
3 *
4 * REST API and web server providing authentication for a Tapis v3 instance.
5 *
6 * The version of the OpenAPI document: 1
7 * Contact: cicsupport@tacc.utexas.edu
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// TokenResponseRefreshToken : A Tapis refresh token object.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TokenResponseRefreshToken {
17    /// The actual refresh token as a JWT
18    #[serde(rename = "refresh_token", skip_serializing_if = "Option::is_none")]
19    pub refresh_token: Option<String>,
20    /// The time, as a string in UTC, when the token expires.
21    #[serde(rename = "expires_at", skip_serializing_if = "Option::is_none")]
22    pub expires_at: Option<String>,
23    /// The amount of time, in seconds, when the token will expire.
24    #[serde(rename = "expires_in", skip_serializing_if = "Option::is_none")]
25    pub expires_in: Option<i32>,
26    /// Unique identifier for the token
27    #[serde(rename = "jti", skip_serializing_if = "Option::is_none")]
28    pub jti: Option<String>,
29}
30
31impl TokenResponseRefreshToken {
32    /// A Tapis refresh token object.
33    pub fn new() -> TokenResponseRefreshToken {
34        TokenResponseRefreshToken {
35            refresh_token: None,
36            expires_at: None,
37            expires_in: None,
38            jti: None,
39        }
40    }
41}