I have been recently working on Rust with Mongodb to serialize/deserialize structures with a Mongodb collection. I found an article https://dev.to/techbelle/structuring-data-with-serde-in-rust-for-mongodb-3b31 on the internet describing exactly what I am looking for. Unfortunately when I put together some code to test the feature the client.collection_with_type is missing on my system. Perhaps the described functionality no longer exists or has morphed into something else.
I have made sure all my dependencies are using the latest versions of mongo and bson. If there is something I haven't included in my system I would appreciate some direction in finding what I need to add.