Skip to main content

windmill_api/models/
readiness_health.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.638.4
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ReadinessHealth : Server readiness status
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ReadinessHealth {
17    /// Whether the server is ready to accept requests
18    #[serde(rename = "healthy")]
19    pub healthy: bool,
20}
21
22impl ReadinessHealth {
23    /// Server readiness status
24    pub fn new(healthy: bool) -> ReadinessHealth {
25        ReadinessHealth {
26            healthy,
27        }
28    }
29}
30