| Crates.io | serde-util |
| lib.rs | serde-util |
| version | 0.3.1 |
| created_at | 2021-09-16 13:55:24.681445+00 |
| updated_at | 2021-09-19 13:04:34.000223+00 |
| description | Soni's Serde Utilities |
| homepage | |
| repository | https://soniex2.autistic.space/git-repos/serde-util.git |
| max_upload_size | |
| id | 452272 |
| size | 33,518 |
This crate provides some utilities for use with serde.
Currently, it provides MayBe<T>, a deserializable that doesn't error if
something doesn't match a T. For example, it enables the JSON:
{
"bar": []
}
to successfully deserialize into the Rust struct:
#[derive(Deserialize)]
struct Foo {
bar: MayBe<f64>,
}
as a foo.bar.is_not().