Module sanitizer::prelude [−][src]
Expand description
Bring all the sanitizers, the derive macro, and the Sanitize trait in scope
Re-exports
pub use crate::Sanitize;
Structs
The IntSanitizer structure is a wrapper over a type T which is to
be sanitized, T can be anything that’s PartialOrd
The Sanitizer structure is a wrapper over a String type which is to be sanitized.
Derive Macros
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