pub struct ParameterValidator {
pub schema: Value,
pub config: ValidationConfig,
}
Expand description
Enhanced JSON Schema validator for tool parameters
Fields§
§schema: Value
JSON Schema for validation
config: ValidationConfig
Validation configuration
Implementations§
Source§impl ParameterValidator
impl ParameterValidator
Sourcepub fn with_config(schema: Value, config: ValidationConfig) -> Self
pub fn with_config(schema: Value, config: ValidationConfig) -> Self
Create validator with custom configuration
Trait Implementations§
Source§impl Clone for ParameterValidator
impl Clone for ParameterValidator
Source§fn clone(&self) -> ParameterValidator
fn clone(&self) -> ParameterValidator
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 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