authentik-client 2026.2.2-rc1

Making authentication simple.
Documentation
/*
 * authentik
 *
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-rc1
 * Contact: hello@goauthentik.io
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Worker {
    #[serde(rename = "worker_id")]
    pub worker_id: String,
    #[serde(rename = "version")]
    pub version: String,
    #[serde(rename = "version_matching")]
    pub version_matching: bool,
}

impl Worker {
    pub fn new(worker_id: String, version: String, version_matching: bool) -> Worker {
        Worker {
            worker_id,
            version,
            version_matching,
        }
    }
}