cat_gateway/service/common/objects/config/
environment.rs

1//! Implement newtype for the frontend config environment
2
3use poem_openapi::{types::Example, Enum};
4
5/// Frontend config environment.
6#[derive(Clone, Enum, Debug)]
7pub(crate) enum ConfigEnvironment {
8    /// Development environment.
9    #[oai(rename = "dev")]
10    Dev,
11    /// QA environment.
12    #[oai(rename = "qa")]
13    Qa,
14    /// Production environment.
15    #[oai(rename = "prod")]
16    Prod,
17}
18
19impl Example for ConfigEnvironment {
20    fn example() -> Self {
21        Self::Dev
22    }
23}