Skip to main content

tapis_authenticator/models/
new_device_code.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 NewDeviceCode {
16    /// The client_id requesting the device code.
17    #[serde(rename = "client_id")]
18    pub client_id: String,
19}
20
21impl NewDeviceCode {
22    pub fn new(client_id: String) -> NewDeviceCode {
23        NewDeviceCode { client_id }
24    }
25}