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