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

Support PartialEq, Eq, Hash, PartialOrd, Ord to skip fields #311

Open
ModProg opened this issue Nov 5, 2023 · 1 comment
Open

Support PartialEq, Eq, Hash, PartialOrd, Ord to skip fields #311

ModProg opened this issue Nov 5, 2023 · 1 comment

Comments

@ModProg
Copy link
Contributor

ModProg commented Nov 5, 2023

When one has a metadata field attached for e.g. better error messages I'd like to be able to derive PartialEq, ... but skip fields like with e.g. Debug.

(It might make sense to force skipping traits in groups, I did this in derive_where to deny skipping e.g. PartialEq but not Hash https://docs.rs/derive-where/latest/derive_where/#skipping-fields)

@tyranron
Copy link
Collaborator

tyranron commented Nov 6, 2023

@ModProg I'm definitely against skipping in groups, but would like to see PRs for enhancing separate derives or adding new ones.

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

No branches or pull requests

3 participants