legacympt-rs/mpt/src/config.rs
2021-08-29 15:14:10 +02:00

23 lines
434 B
Rust

use serde::Deserialize;
#[derive(Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct Config {
pub locations: Locations,
pub downloads: Downloads,
}
#[derive(Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Locations {
pub src: String,
pub temp_dir: String,
}
#[derive(Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Downloads {
pub max_threads: u16,
pub http_timeout: u32,
}