Crates.io | validation-boilerplate |
lib.rs | validation-boilerplate |
version | 0.1.0 |
source | src |
created_at | 2024-06-27 03:09:51.172142 |
updated_at | 2024-06-27 03:09:51.172142 |
description | Utility for generating boilerplate for types that require runtime validation whenever they are loaded. |
homepage | |
repository | https://github.com/adam-douglass/struct-metadata/ |
max_upload_size | |
id | 1285046 |
size | 9,808 |
Utility for generating boilerplate for types that require runtime validation whenever they are loaded.
This generates a private type that uses derive(Deserialize) as normal then passes it to a validation function to be converted to the user type.
It can be applied recursively and is compatable with any type that implements deserialize normally.