about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-09-07 14:22:00 -0400
committerBen Morrison <ben@gbmor.dev>2019-09-07 14:22:00 -0400
commitd210c2ffe065431df381d2710d3958c4a5fe6a06 (patch)
tree289fe5040935ae8cd5a075944f4ab66991bf4a80 /src
parent311eaad58cae3f39e6ec9f0495808e11698b92f1 (diff)
downloadinstistats-d210c2ffe065431df381d2710d3958c4a5fe6a06.tar.gz
structures
Diffstat (limited to 'src')
-rw-r--r--src/main.rs30
1 files changed, 29 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index e7a11a9..4405674 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,31 @@
+use serde::{Deserialize, Serialize};
+
+const VERS: &str = "v0.1";
+const OUT_PATH: &str = "/var/www/htdocs/tilde.json";
+
+#[derive(Debug, Deserialize, Serialize)]
+struct Server {
+    name: String,
+    url: String,
+    signup_url: String,
+    user_count: u32,
+    want_users: bool,
+    admin_email: String,
+    description: String,
+    users: Vec<User>,
+}
+
+#[derive(Debug, Deserialize, Serialize)]
+struct User {
+    name: String,
+    title: String,
+    mtime: String,
+}
+
 fn main() {
-    println!("Hello, world!");
+    println!("instistats {}", VERS);
+    println!("(c) 2019 Ben Morrison - ISC License");
+    println!();
+    println!("Path: {}", OUT_PATH);
+    println!();
 }