authentik_client/models/
app.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.12.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// App : Serialize Application info
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct App {
17    #[serde(rename = "name")]
18    pub name: String,
19    #[serde(rename = "label")]
20    pub label: String,
21}
22
23impl App {
24    /// Serialize Application info
25    pub fn new(name: String, label: String) -> App {
26        App { name, label }
27    }
28}