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