12 lines
251 B
Rust
12 lines
251 B
Rust
#[derive(Clone)]
|
|
pub struct AppConfig {
|
|
pub admin_host: String,
|
|
}
|
|
|
|
impl AppConfig {
|
|
pub fn from_env() -> Self {
|
|
Self {
|
|
admin_host: std::env::var("MABEL_ADMIN_HOST").expect("MABEL_ADMIN_HOST must be set"),
|
|
}
|
|
}
|
|
}
|