Crates.io | sanitizer_macros |
lib.rs | sanitizer_macros |
version | 0.2.2 |
source | src |
created_at | 2020-12-21 10:59:16.693072 |
updated_at | 2021-11-04 06:55:34.550177 |
description | Derive macro for the sanitizer crate |
homepage | |
repository | |
max_upload_size | |
id | 325184 |
size | 39,889 |
Derive macros for sanitizer crate
use sanitizer::prelude::*;
#[derive(Sanitize)]
struct User {
#[sanitize(trim)]
name: String,
#[sanitize(trim, lower_case)]
email: String
}