como/como_infrastructure/src/configs/mod.rs

18 lines
398 B
Rust
Raw Normal View History

2022-10-03 23:00:31 +02:00
#[derive(clap::Parser)]
pub struct AppConfig {
#[clap(long, env)]
pub database_url: String,
#[clap(long, env)]
pub rust_log: String,
#[clap(long, env)]
pub token_secret: String,
#[clap(long, env)]
2022-10-04 12:06:00 +02:00
pub api_port: u32,
2022-10-03 23:00:31 +02:00
#[clap(long, env)]
pub run_migrations: bool,
#[clap(long, env)]
pub seed: bool,
#[clap(long, env)]
pub cors_origin: String,
}