Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing feature to specify attributes on GenStruct #79

Open
mscofield0 opened this issue Dec 9, 2023 · 1 comment
Open

Missing feature to specify attributes on GenStruct #79

mscofield0 opened this issue Dec 9, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers not-stale

Comments

@mscofield0
Copy link

My use case is the following: I would like to derive a macro for my enum and then for each struct-field variant generate an identical struct which the same attributes as the enum (Clone, Debug, etc...).

@VictorKoenders VictorKoenders added enhancement New feature or request not-stale labels Dec 10, 2023
@VictorKoenders
Copy link
Contributor

Should be pretty easy:

  • Add a field to the GenStruct struct
  • Add functions to that struct to add attributes
  • Add documentations that also test the output, see this for an example

@VictorKoenders VictorKoenders added the good first issue Good for newcomers label Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers not-stale
Projects
None yet
Development

No branches or pull requests

2 participants