-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
problem:
I have a struct that needs to be Clone. It contains a member foo with type Option where Foo isn't Clone. On clone I'd like foo to be None (aka Option::default()).
Having used derivative on Debug in the past to do similar things, and having used default in serde, I expected that derivative would let me do this easily.
feature request:
add a field attribute "default" for Clone, with the same behavior as serde's default: https://serde.rs/attr-default.html
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels