forked from koute/speedy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(derive):
read_with
and write_with
attribute for fields
The `read_with` and `write_with` attributes have been added. They override the generated implementation for reading/writing individual fields, similarly to how Serde's `deserialize_with` and `serialize_with` attributes work. The `with` attribute has also been added as a utility, which sets both `read_with` and `write_with` simultaneously. See the README.md for more specific documentation. Closes koute#12.
- Loading branch information
Showing
2 changed files
with
188 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters