This library provides extension methods for the Default
trait.
case1:
use default_ext::DefaultExt;
assert!(false.is_default());
case2:
#[derive(serde::Serialize, serde::Deserialize)]
struct Object {
#[serde(
default,
skip_serializing_if = "default_ext::DefaultExt::is_default",
)]
is_test: bool,
}
Licensed under either of Apache License, Version 2.0 or MIT license at your option.