summaryrefslogtreecommitdiff
path: root/webhook/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'webhook/src/config.rs')
-rw-r--r--webhook/src/config.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/webhook/src/config.rs b/webhook/src/config.rs
new file mode 100644
index 0000000..eead97b
--- /dev/null
+++ b/webhook/src/config.rs
@@ -0,0 +1,19 @@
+use serde::Deserialize;
+
+#[derive(Debug, Deserialize, Clone, Default)]
+pub struct ServerSettings {
+ pub port: u16,
+ pub address: String,
+}
+
+#[derive(Debug, Deserialize, Clone, Default)]
+pub struct Discord {
+ pub public_key: String,
+ pub client_id: u32,
+}
+
+#[derive(Debug, Deserialize, Clone, Default)]
+pub struct Config {
+ pub server: ServerSettings,
+ pub discord: Discord,
+} \ No newline at end of file