I am very new to Rust, so apologies in advance if this is a rookie question.
I am trying to use Rust for a webapp, specifally to hold the tree structure in the memory of Rust instead of the heap of the Javascript.
Full detaiil of what I have tried and my code is here
https://stackoverflow.com/questions/61494301/rust-petgraph-wasm-project-trying-to-use-struct-with-graph-property-but-requir
TL:DR - basically I followed Introduction - Rust and WebAssembly and try to use petgraph crate with it, but when creating the struct with Graph, its asking for 2 parameters, I have tried other syntax to put the parameters in but it looks like wasm-bindgen does not support it.
Please any help is appreciated thanks.