pub struct ParameterValidator {
pub auto_transform: bool,
pub strict_mode: bool,
}Expand description
Parameter validation and transformation engine
Fields§
§auto_transform: boolWhether to apply automatic transformations
strict_mode: boolWhether to be strict about unknown properties
Implementations§
Source§impl ParameterValidator
impl ParameterValidator
Sourcepub fn strict() -> Self
pub fn strict() -> Self
Create a strict validator (no auto-transforms, strict schema compliance)
Sourcepub fn validate(&self, schema: &Value, params: &Value) -> ValidationResult
pub fn validate(&self, schema: &Value, params: &Value) -> ValidationResult
Validate parameters against a JSON Schema
Sourcepub fn is_valid(&self, schema: &Value, params: &Value) -> bool
pub fn is_valid(&self, schema: &Value, params: &Value) -> bool
Quick validation check (returns only boolean)
Sourcepub fn extract_parameter_hints(
&self,
schema: &Value,
) -> HashMap<String, ParameterHint>
pub fn extract_parameter_hints( &self, schema: &Value, ) -> HashMap<String, ParameterHint>
Extract parameter hints from schema (for UI display)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParameterValidator
impl RefUnwindSafe for ParameterValidator
impl Send for ParameterValidator
impl Sync for ParameterValidator
impl Unpin for ParameterValidator
impl UnwindSafe for ParameterValidator
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