Skip to main content

tapis_authenticator/models/
client.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 Client {
16    /// A unique identifier for the client. Must be unique for the tenant.
17    #[serde(rename = "client_id", skip_serializing_if = "Option::is_none")]
18    pub client_id: Option<String>,
19    /// A secret key for authenticating the client.
20    #[serde(rename = "client_key", skip_serializing_if = "Option::is_none")]
21    pub client_key: Option<String>,
22    /// URL for application to receive OAuth callbacks for executing flows such as authorization_code.
23    #[serde(rename = "callback_url", skip_serializing_if = "Option::is_none")]
24    pub callback_url: Option<String>,
25    /// The time the client was created.
26    #[serde(rename = "create_time", skip_serializing_if = "Option::is_none")]
27    pub create_time: Option<String>,
28    /// The time the client was last updated.
29    #[serde(rename = "last_update_time", skip_serializing_if = "Option::is_none")]
30    pub last_update_time: Option<String>,
31    /// The display name that will represent this client.
32    #[serde(rename = "display_name", skip_serializing_if = "Option::is_none")]
33    pub display_name: Option<String>,
34    /// A description of this client.
35    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
36    pub description: Option<String>,
37}
38
39impl Client {
40    pub fn new() -> Client {
41        Client {
42            client_id: None,
43            client_key: None,
44            callback_url: None,
45            create_time: None,
46            last_update_time: None,
47            display_name: None,
48            description: None,
49        }
50    }
51}