skippable-partialeq
PartialEq, but you can ignore fields
This crate provides a custom derive macro SkippablePartialEq that allows you to implement PartialEq for structs while ignoring fields based on custom rules such as suffixes, as well as specific fields.
Usage
First, add SkippablePartialEq as a dependency.
Then, derive SkippablePartialEq for your struct:
use SkippablePartialEq;
This will generate an implementation of PartialEq that ignores the fields ending with _at, while still checking for Option's outer None & Some values. This attribute supports multiple values separated by comma.
You can also use the #[skip] attribute to filter by specific fields:
use SkippablePartialEq;
This would exclude creation_date from the comparison.