12 lines
283 B
Rust
12 lines
283 B
Rust
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:#?}");
|
|
}
|