Initial commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
use workshop_macro::from_schema;
|
||||
|
||||
from_schema!("https://download.huizinga.dev/workshop/schema.json");
|
||||
|
||||
fn main() {
|
||||
let content = std::fs::read_to_string("./users.json").unwrap();
|
||||
|
||||
let users: Vec<User> = serde_json::from_str(&content).unwrap();
|
||||
|
||||
println!("{users:#?}");
|
||||
}
|
||||
Reference in New Issue
Block a user