pub struct ValidationConfig {
pub allow_additional: bool,
pub coerce_types: bool,
pub detailed_errors: bool,
pub max_string_length: Option<usize>,
pub max_array_length: Option<usize>,
pub max_object_properties: Option<usize>,
}
Expand description
Parameter validation configuration
Fields§
§allow_additional: bool
Whether to allow additional properties not in schema
coerce_types: bool
Whether to coerce types when possible (e.g., string “5” -> number 5)
detailed_errors: bool
Whether to provide detailed validation errors
max_string_length: Option<usize>
Maximum string length for validation
max_array_length: Option<usize>
Maximum array length for validation
max_object_properties: Option<usize>
Maximum object property count
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 moreSource§impl Debug for ValidationConfig
impl Debug for ValidationConfig
Auto 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