Skip to main content

windmill_api/models/
external_instance_pg_status.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.824.1
7 * Contact: contact@windmill.dev
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 ExternalInstancePgStatus {
16    #[serde(rename = "configured")]
17    pub configured: bool,
18    #[serde(rename = "database_count")]
19    pub database_count: i32,
20    #[serde(rename = "last_setup", skip_serializing_if = "Option::is_none")]
21    pub last_setup: Option<Box<models::ExternalInstancePgSetupReport>>,
22}
23
24impl ExternalInstancePgStatus {
25    pub fn new(configured: bool, database_count: i32) -> ExternalInstancePgStatus {
26        ExternalInstancePgStatus {
27            configured,
28            database_count,
29            last_setup: None,
30        }
31    }
32}
33