tembo_api_client/models/
trunk_install_status.rs

1/*
2 * Tembo Cloud
3 *
4 * Platform API for Tembo Cloud             </br>             </br>             To find a Tembo Data API, please find it here:             </br>             </br>             [AWS US East 1](https://api.data-1.use1.tembo.io/swagger-ui/)
5 *
6 * The version of the OpenAPI document: v1.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct TrunkInstallStatus {
15    #[serde(rename = "error")]
16    pub error: bool,
17    #[serde(
18        rename = "error_message",
19        default,
20        with = "::serde_with::rust::double_option",
21        skip_serializing_if = "Option::is_none"
22    )]
23    pub error_message: Option<Option<String>>,
24    #[serde(
25        rename = "installed_to_pods",
26        default,
27        with = "::serde_with::rust::double_option",
28        skip_serializing_if = "Option::is_none"
29    )]
30    pub installed_to_pods: Option<Option<Vec<String>>>,
31    #[serde(rename = "loading", skip_serializing_if = "Option::is_none")]
32    pub loading: Option<bool>,
33    #[serde(rename = "name")]
34    pub name: String,
35    #[serde(
36        rename = "version",
37        default,
38        with = "::serde_with::rust::double_option",
39        skip_serializing_if = "Option::is_none"
40    )]
41    pub version: Option<Option<String>>,
42}
43
44impl TrunkInstallStatus {
45    pub fn new(error: bool, name: String) -> TrunkInstallStatus {
46        TrunkInstallStatus {
47            error,
48            error_message: None,
49            installed_to_pods: None,
50            loading: None,
51            name,
52            version: None,
53        }
54    }
55}