Skip to main content

authentik_client/models/
process.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.12.4
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 Process {
16    #[serde(rename = "id")]
17    pub id: i32,
18    #[serde(rename = "name")]
19    pub name: String,
20    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
21    pub user: Option<String>,
22}
23
24impl Process {
25    pub fn new(id: i32, name: String) -> Process {
26        Process { id, name, user: None }
27    }
28}