terrana 0.1.1

Zero-config spatial API server — point it at a CSV, Parquet, or GeoJSON file and get a REST API with spatial and geometry queries.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! The resolved runtime configuration, built from parsed CLI args and shared through
//! [`AppState`](crate::server::AppState) behind an `Arc`.

use std::path::PathBuf;

// Fields are retained for introspection and future handler use; not all are read today.
#[derive(Debug, Clone)]
#[allow(dead_code)]
pub struct Config {
    pub file: PathBuf,
    pub lat_col: Option<String>,
    pub lon_col: Option<String>,
    pub table: Option<String>,
    pub port: u16,
    pub bind: String,
    pub watch: bool,
    pub disk: bool,
}