Skip to main content

tapis_authenticator/models/
v2_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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct V2Token {
16    /// The access token representing the user.
17    #[serde(rename = "access_token")]
18    pub access_token: String,
19}
20
21impl V2Token {
22    pub fn new(access_token: String) -> V2Token {
23        V2Token { access_token }
24    }
25}