default-ext

ci Rust Documentation Latest Version

This library provides extension methods for the Default trait.

Example

case1: rust use default_ext::DefaultExt; assert!(false.is_default());

case2: ```rust

[derive(serde::Serialize, serde::Deserialize)]

struct Object { #[serde( default, skipserializingif = "defaultext::DefaultExt::isdefault", )] is_test: bool, } ```

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.