about summary refs log tree commit diff
path: root/users/wpcarro/scratch/rust/src/main.rs
blob: da9e3d3c637cf2c919d6734c39ac6f77fe29a48e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)
}