diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -2,6 +2,17 @@ use serde::{Serialize, Deserialize}; use std::collections::HashMap; +#[derive(Default, Deserialize, Debug, Clone)] +pub struct ProxyConfig { + pub bind_addr: Option<String>, + pub index: Vec<IndexConfig> +} + +#[derive(Deserialize, Debug, Clone)] +pub struct IndexConfig { + pub name: String, +} + #[derive(Serialize, Deserialize, Debug)] pub struct ApiRequest { pub method: String, |