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
43
44
/*
* 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};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DeviceCodeResposne {
/// The device code generated for the client
#[serde(rename = "device_code")]
pub device_code: String,
/// The user code generated for the client
#[serde(rename = "user_code")]
pub user_code: String,
/// The client_id of the client
#[serde(rename = "client_id")]
pub client_id: String,
/// The expiration for the user code
#[serde(rename = "expires_in")]
pub expires_in: String,
/// The url the user should go to to enter their user code
#[serde(rename = "verification_uri")]
pub verification_uri: String,
}
impl DeviceCodeResposne {
pub fn new(device_code: String, user_code: String, client_id: String, expires_in: String, verification_uri: String) -> DeviceCodeResposne {
DeviceCodeResposne {
device_code,
user_code,
client_id,
expires_in,
verification_uri,
}
}
}