George Malayil Philip
George Malayil Philip
Hi, I apologize for the extremely late response. I totally lost track of this issue. I do believe you are right - I had misunderstood the behavior around defaults. Thanks...
``` extern crate serde; extern crate serde_aux; extern crate serde_json; use serde::{Deserialize, Serialize}; use serde_aux::prelude::*; #[derive(Serialize, Deserialize, Debug, Default)] struct MyStruct { #[serde(deserialize_with = "deserialize_default_from_empty_object")] empty_as_default: Option, } #[derive(Serialize, Deserialize,...
``` #[derive(Serialize, Deserialize, Debug, Default, PartialEq)] struct MyInnerStruct { mandatory: u64, #[serde(default)] optional: u64, } ``` Setting `#[serde(default)]` on the field level, instead of container level, deserializes to None. Not...
Unfortunately, settings field level attribute `#[serde(default)]` on all fields on the struct, goes back to container level behavior. ``` #[derive(Serialize, Deserialize, Debug, Default, PartialEq)] struct MyInnerStruct { #[serde(default)] mandatory: u64,...
> Use [`NodeId::descendants()`](https://docs.rs/indextree/4.3.1/indextree/struct.NodeId.html#method.descendants). > > Note that this is implemented to NodeId, not arena, because the arena can have multiple unordered top-level nodes. > Currently there seems no ways to...
Since, it takes a while to reproduce, I've created a small video demonstrating the issue http://youtu.be/EIsc71BgPpA Thanks