pub struct ValidationOptions {
pub request_mode: ValidationMode,
pub aggregate_errors: bool,
pub validate_responses: bool,
pub overrides: HashMap<String, ValidationMode>,
pub admin_skip_prefixes: Vec<String>,
pub response_template_expand: bool,
pub validation_status: Option<u16>,
}
Fields§
§request_mode: ValidationMode
§aggregate_errors: bool
§validate_responses: bool
§overrides: HashMap<String, ValidationMode>
§admin_skip_prefixes: Vec<String>
Skip validation for request paths starting with any of these prefixes
response_template_expand: bool
Expand templating tokens in responses/examples
validation_status: Option<u16>
HTTP status for validation failures (e.g., 400 or 422)
Trait Implementations§
Source§impl Clone for ValidationOptions
impl Clone for ValidationOptions
Source§fn clone(&self) -> ValidationOptions
fn clone(&self) -> ValidationOptions
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 ValidationOptions
impl Debug for ValidationOptions
Auto Trait Implementations§
impl Freeze for ValidationOptions
impl RefUnwindSafe for ValidationOptions
impl Send for ValidationOptions
impl Sync for ValidationOptions
impl Unpin for ValidationOptions
impl UnwindSafe for ValidationOptions
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