I'm having a hard time pretty-printing the NEAR protocol collections. I believe the best approach is to implement Debug for Map, Set, and Vector. Here's what I think I should be doing:
use std::fmt;
impl fmt::Debug for Map {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
// How do I fill this out?
}
}
https://docs.rs/near-sdk/0.10.0/near_sdk/collections/index.html
If this is the wrong approach, how do I use println! to print out the contents of these collections?