ogcapi-services 0.3.0

Server implementation of several OGC API Standards.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use clap::Parser;

/// Application configuration
#[derive(Parser, Debug)]
pub struct Config {
    /// Listening port of the server
    #[clap(long, env("APP_PORT"), default_value = "8484")]
    pub port: u16,
    /// istening host address of the server
    #[clap(long, env("APP_HOST"), default_value = "0.0.0.0")]
    pub host: String,
    /// Postgres database url
    #[clap(long, env, hide_env_values = true, value_parser)]
    pub database_url: url::Url,
    /// OpenAPI definition
    #[clap(long, env, value_parser)]
    pub openapi: Option<std::path::PathBuf>,
}