Skip to content

Assist for deriving a trait recursively #16069

Description

@Shnatsel

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions