Release Notes
Features
-
Added support for optional deserialization:
- New functions were introduced to handle
Option<T>
types during deserialization:as_opt_bool
– ReturnsOption<bool>
.as_opt_f64
– ReturnsOption<f64>
.as_opt_i64
– ReturnsOption<i64>
.as_opt_string
– ReturnsOption<String>
.as_opt_u64
– ReturnsOption<u64>
.
These functions ensure that
null
values in the JSON input or deserialization errors are correctly deserialized into
None
,
while valid values will
return the appropriateSome(T)
. - New functions were introduced to handle
Bug Fixes
- Resolved an issue where the existing deserialization functions did not handle
Option<T>
types, only direct types.
Now,
null
values and errors are deserialized toNone
, making the handling of nulls more consistent with Serde's
standard
behavior.
Breaking Changes
- No breaking changes introduced in this version.
What's Changed
Full Changelog: v0.4.2...v0.5.0