aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a4cdc3c..8ea77d4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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,