tembo_api_client/models/
env_var_ref.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///
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
15pub enum EnvVarRef {
16    #[serde(rename = "ReadOnlyConnection")]
17    ReadOnlyConnection,
18    #[serde(rename = "ReadWriteConnection")]
19    ReadWriteConnection,
20}
21
22impl std::fmt::Display for EnvVarRef {
23    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
24        match self {
25            Self::ReadOnlyConnection => write!(f, "ReadOnlyConnection"),
26            Self::ReadWriteConnection => write!(f, "ReadWriteConnection"),
27        }
28    }
29}
30
31impl Default for EnvVarRef {
32    fn default() -> EnvVarRef {
33        Self::ReadOnlyConnection
34    }
35}