Hi,
i’ve been exploring serde
package. it has recently added support for not serializing empty fields. The problem is, developers had to add two attributes for this purpose, one of which handles all collections with method is_empty
, and the other handles Option
, because latter has is_none
method. And due to code generation happening on syntax tree, with no type info, there’s no way to deduce which one to use.
So I’m curious a bit, if it would be Ok to add Option.is_empty
as an alias method.
Thanks.