tapis-authenticator 0.1.1

REST API and web server providing authentication for a Tapis v3 instance.
Documentation
/*
 * 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,
        }
    }
}