Skip to main content

authentik_client/models/
worker.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.8.6
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 Worker {
16    #[serde(rename = "worker_id")]
17    pub worker_id: String,
18    #[serde(rename = "version")]
19    pub version: String,
20    #[serde(rename = "version_matching")]
21    pub version_matching: bool,
22}
23
24impl Worker {
25    pub fn new(worker_id: String, version: String, version_matching: bool) -> Worker {
26        Worker {
27            worker_id,
28            version,
29            version_matching,
30        }
31    }
32}