pub struct ValidationConfig {
pub max_request_size: usize,
pub max_string_length: usize,
pub max_array_length: usize,
pub sanitize_input: bool,
}
Expand description
Input validation configuration
Fieldsยง
ยงmax_request_size: usize
ยงmax_string_length: usize
ยงmax_array_length: usize
ยงsanitize_input: bool
Trait Implementationsยง
Sourceยงimpl Clone for ValidationConfig
impl Clone for ValidationConfig
Sourceยงfn clone(&self) -> ValidationConfig
fn clone(&self) -> ValidationConfig
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 moreAuto Trait Implementationsยง
impl Freeze for ValidationConfig
impl RefUnwindSafe for ValidationConfig
impl Send for ValidationConfig
impl Sync for ValidationConfig
impl Unpin for ValidationConfig
impl UnwindSafe for ValidationConfig
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