Skip to main content

tapis_authenticator/models/
new_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 NewClient {
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    /// A name for this client that will be displayed to a user.
26    #[serde(rename = "display_name", skip_serializing_if = "Option::is_none")]
27    pub display_name: Option<String>,
28    /// A description of this client. Optional.
29    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
30    pub description: Option<String>,
31}
32
33impl NewClient {
34    pub fn new() -> NewClient {
35        NewClient {
36            client_id: None,
37            client_key: None,
38            callback_url: None,
39            display_name: None,
40            description: None,
41        }
42    }
43}