Closed woodruffw closed 2 years ago
Hi and thanks for your contribution!
Do you mind renaming default_as_true
to just bool_true()
? As the default
part is already in the #[serde(default =
.
Thanks for the review! Sure, that's a much better name. I'll make that change tonight.
Updated. Let me know if there's anything else I can do or change.
Thanks, and that's already enough. Have a nice day!
Published as 3.1.0
, enjoy! And thanks again.
This adds a
default_as_true
helper, which allows Serde to defaultbool
fields totrue
instead offalse
.This has been brought up on Serde's side before, but has no upstream implementation. Some of the discussion is here: https://github.com/serde-rs/serde/issues/1030