- Question for people who are really good with `serde`: Is there a good way to serialize/deserialize into an enum based on a specific field constant? Like, I have a static str literal that I want to match on so I don't need to use a `String` and then do weird match thingies?
- I don't know if it fits your exact usecase, but i have used this: docs.rs/serde_with/l...Dec 29, 2025 12:33
- noooot quite what i'm looking for, but thanks
- Maybe these 2 in combination with first thing would help: docs.rs/enum-display... docs.rs/strum/latest... its a bit annoying to have to derive so much, but it worked for my usecases