use std::collections::HashMap; use musli::{Decode, Encode}; use serde_derive::{Deserialize, Serialize}; #[derive(Serialize, Deserialize)] struct Serde { map: HashMap, } #[derive(Encode, Decode)] struct Struct { #[musli(with = musli_serde)] field: Serde, }