tembo_api_client/models/
middleware.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 crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Middleware : Midddleware is used to configure the middleware for the appService. This is specifically configured for the ingress controller Traefik.  Please refer to the example in the `AppService` documentation.
15/// Midddleware is used to configure the middleware for the appService. This is specifically configured for the ingress controller Traefik.  Please refer to the example in the `AppService` documentation.
16#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
17#[serde(untagged)]
18pub enum Middleware {
19    MiddlewareOneOf(Box<models::MiddlewareOneOf>),
20    MiddlewareOneOf1(Box<models::MiddlewareOneOf1>),
21    MiddlewareOneOf2(Box<models::MiddlewareOneOf2>),
22}
23
24impl Default for Middleware {
25    fn default() -> Self {
26        Self::MiddlewareOneOf(Default::default())
27    }
28}