Open Cheban1996 opened 2 months ago
I want serialize only tag
#[derive(Serialize, Deserialize)] #[serde(tag = "type")] enum Message { Request { id: String, method: String, params: Params }, Response { id: String, result: Value }, } {"type": "Request"}
How make that and if impossible, maybe need implement onlytag?
I want serialize only tag
How make that and if impossible, maybe need implement onlytag?