Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Deserialize MiniJinja Values To Structs Via Serde JSON In Rust

rust
    pub fn get_subtree(&self, args: &[Value]) -> Vec<CollectionItem> {
        let original_json = json!(args[1]);
        let original_collection: Collection = serde_json::from_value(original_json).unwrap();
        dbg!(original_collection);

}

This is just a snippet to get started with.