ritelinked icon indicating copy to clipboard operation
ritelinked copied to clipboard

Derive Deserialize

Open andrewdavidmackenzie opened this issue 2 years ago • 0 comments

I would like to use LinkedHashSet/Map in this struct that I derive Deserialize on:

#[derive(Deserialize, Serialize, Clone)]
pub struct RunState {
    functions: Vec<RuntimeFunction>,
    blocked: LinkedHashSet<usize>,
}

How can I do that without having to write a serializer/deserializer?

andrewdavidmackenzie avatar Apr 15 '22 16:04 andrewdavidmackenzie