legacympt-rs/mpt/src/config.rs

23 lines
436 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: usize,
pub http_timeout: u32,
}