pub struct SanitizationConfig {
pub max_length: usize,
pub allow_special_chars: bool,
pub allow_html: bool,
pub trim_whitespace: bool,
}Expand description
Configuration for input sanitization
Fields§
§max_length: usizeMaximum input length
allow_special_chars: boolAllow special characters
allow_html: boolAllow HTML
trim_whitespace: boolTrim whitespace
Trait Implementations§
Source§impl Clone for SanitizationConfig
impl Clone for SanitizationConfig
Source§fn clone(&self) -> SanitizationConfig
fn clone(&self) -> SanitizationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SanitizationConfig
impl Debug for SanitizationConfig
Auto Trait Implementations§
impl Freeze for SanitizationConfig
impl RefUnwindSafe for SanitizationConfig
impl Send for SanitizationConfig
impl Sync for SanitizationConfig
impl Unpin for SanitizationConfig
impl UnwindSafe for SanitizationConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more