pub struct ParamConstraint {
pub tool_name: String,
pub param_path: String,
pub rule: ConstraintRule,
}Expand description
A parameter constraint for tool arguments.
Scope: built-in rules cover the structural validation cases
(required / range / enum). For pattern matching or custom predicates,
register a VetoCheck instead — keeps the kernel free of regex deps
and lets the SDK use whatever pattern engine suits its host language.
Fields§
§tool_name: String§param_path: String§rule: ConstraintRuleTrait Implementations§
Source§impl Clone for ParamConstraint
impl Clone for ParamConstraint
Source§fn clone(&self) -> ParamConstraint
fn clone(&self) -> ParamConstraint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParamConstraint
impl RefUnwindSafe for ParamConstraint
impl Send for ParamConstraint
impl Sync for ParamConstraint
impl Unpin for ParamConstraint
impl UnsafeUnpin for ParamConstraint
impl UnwindSafe for ParamConstraint
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