1 2 3 4 5 6 7
use serde::Deserialize; #[derive(Deserialize, Debug)] pub struct TypeWrapped<T> { #[serde(rename = "type")] _type: T, }