about summary refs log tree commit diff
path: root/users/wpcarro/scratch/rust/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'users/wpcarro/scratch/rust/src/main.rs')
-rw-r--r--users/wpcarro/scratch/rust/src/main.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/users/wpcarro/scratch/rust/src/main.rs b/users/wpcarro/scratch/rust/src/main.rs
new file mode 100644
index 0000000000..da9e3d3c63
--- /dev/null
+++ b/users/wpcarro/scratch/rust/src/main.rs
@@ -0,0 +1,18 @@
+use serde::{Deserialize, Serialize};
+use serde_json::{json, Value};
+
+mod display;
+mod json;
+
+////////////////////////////////////////////////////////////////////////////////
+// Main
+////////////////////////////////////////////////////////////////////////////////
+
+fn main() {
+    let john: display::Person = display::Person {
+        fname: "John".to_string(),
+        lname: "Cleese".to_string(),
+        age: 82,
+    };
+    println!("Person: {}", john)
+}