I am looking at a rather large codebase with lots and lots of structs that contain each other. (It's a crate implementing serialization/deserialization for the CycloneDX format).
I need to add #[derive(Clone)] to a struct, which contains other structs, which contains other structs and so on. It would be very tedious to do manually. It would be great to have an assist that applies the derives of the top-level struct to all the structs in its fields, and so on recursively.
I am looking at a rather large codebase with lots and lots of structs that contain each other. (It's a crate implementing serialization/deserialization for the CycloneDX format).
I need to add
#[derive(Clone)]to a struct, which contains other structs, which contains other structs and so on. It would be very tedious to do manually. It would be great to have an assist that applies the derives of the top-level struct to all the structs in its fields, and so on recursively.