Skip to main content

authentik_client/models/
content_type.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.1
7 * Contact: hello@goauthentik.io
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 ContentType {
16    #[serde(rename = "id")]
17    pub id: i32,
18    #[serde(rename = "app_label")]
19    pub app_label: String,
20    #[serde(rename = "model")]
21    pub model: String,
22    #[serde(rename = "verbose_name_plural")]
23    pub verbose_name_plural: String,
24}
25
26impl ContentType {
27    pub fn new(id: i32, app_label: String, model: String, verbose_name_plural: String) -> ContentType {
28        ContentType {
29            id,
30            app_label,
31            model,
32            verbose_name_plural,
33        }
34    }
35}