Module sanitizer::prelude[][src]

Bring all the sanitizers, the derive macro, and the Sanitize trait in scope

Re-exports

pub use crate::Sanitize;

Structs

IntSanitizer

The IntSanitizer structure is a wrapper over a type T which is to be sanitized, T can be anything that’s PartialOrd

StringSanitizer

The Sanitizer structure is a wrapper over a String type which is to be sanitized.

Derive Macros

Sanitize

The Sanitize derive macro implements the Sanitize trait for you. The trait only has a single associated function called sanitize which edits the fields based on the sanitizer you specified in the helper attributes