diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-09-07 14:22:00 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-09-07 14:22:00 -0400 |
commit | d210c2ffe065431df381d2710d3958c4a5fe6a06 (patch) | |
tree | 289fe5040935ae8cd5a075944f4ab66991bf4a80 /src/main.rs | |
parent | 311eaad58cae3f39e6ec9f0495808e11698b92f1 (diff) | |
download | instistats-d210c2ffe065431df381d2710d3958c4a5fe6a06.tar.gz |
structures
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 30 |
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!(); } |