tembo_api_client/models/
ingress.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 Ingress {
15    #[serde(rename = "enabled")]
16    pub enabled: bool,
17    #[serde(
18        rename = "path",
19        default,
20        with = "::serde_with::rust::double_option",
21        skip_serializing_if = "Option::is_none"
22    )]
23    pub path: Option<Option<String>>,
24}
25
26impl Ingress {
27    pub fn new(enabled: bool) -> Ingress {
28        Ingress {
29            enabled,
30            path: None,
31        }
32    }
33}