summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index f10fd08..7146a0b 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -2,7 +2,14 @@ pub use config::ConfigError;
use serde::Deserialize;
#[derive(Deserialize)]
+pub struct ServerConfig {
+ pub host: String,
+ pub port: u16,
+}
+
+#[derive(Deserialize)]
pub struct Config {
+ pub server: ServerConfig,
pub pg: deadpool_postgres::Config,
}