Rust canisters output HashMap. How to construct candid

CandidType has a function ::ty() which you can use to retrieve the Candid type and, say, print it, to avoid needing a forum round-trip in the future. But to answer your question, a hash-map is represented as a list of pairs. vec record { nat; bool; }