render_api/model/
env_var.rs

1
2use serde::{Serialize, Deserialize};
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct EnvVar {
5    pub key: String,
6    pub value: String,
7}
8impl std::fmt::Display for EnvVar {
9    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
10        write!(f, "{}", serde_json::to_string(self).unwrap())
11    }
12}