Skip to content

Conversation

@mahdi739
Copy link

@mahdi739 mahdi739 commented Jun 26, 2025

This PR introduces a new derive macro called GetSet, which includes all other derive macros.
So instead of writing this:

#[derive(Getters, CopyGetters, CloneGetters, MutGetters, Setters, WithSetters)]

You can write this:

#[derive(GetSet)]

Note that none of the derive macros take effect unless you specify the desired modes within the getset attribute macro above the struct or field.

@mahdi739 mahdi739 changed the title feat: add GetSet derive macro representing all modes feat: add GetSet derive macro representing all modes (closes #36) Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant