serde-util

Crates.ioserde-util
lib.rsserde-util
version0.3.1
sourcesrc
created_at2021-09-16 13:55:24.681445
updated_at2021-09-19 13:04:34.000223
descriptionSoni's Serde Utilities
homepage
repositoryhttps://soniex2.autistic.space/git-repos/serde-util.git
max_upload_size
id452272
size33,518
Soni L. (SoniEx2)

documentation

README

Soni's Serde Utilities

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().

Commit count: 0

cargo fmt