Skip to main content

authentik_client/models/
service_connection_state.rs

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