diff options
Diffstat (limited to 'users/wpcarro/scratch/rust/src/main.rs')
-rw-r--r-- | users/wpcarro/scratch/rust/src/main.rs | 18 |
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 000000000000..da9e3d3c637c --- /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) +} |