use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize)] pub struct GenericStruct { x: T, } #[derive(Serialize, Deserialize)] pub struct GenericNewTypeStruct(T);