Add Encodable and Decodable for VecMap
auto merge of #18813 : csherratt/rust/add-encode-decode-vecmap, r=alexcrichton