{"version":"1.0","type":"rich","title":"Rust code shared from the playground","description":"This example demonstrates how to deserialize JSON responses from the CanLII legal database into strongly typed Rust structs using the `serde` and `serde_json` libraries, with `serde_derive` providing automatic trait implementations. It defines nested structures for search results, cases, legislation, and case identifiers, using attributes like `#[serde(rename)]` and `#[serde(skip_serializing_if)]` to handle API naming conventions and optional fields. The `main` function parses sample JSON payloads—including a large search response with over 1.6 million results—and prints selected fields to verify the deserialization works correctly.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-199593baed3c660196ceee9cbd3f0885?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}