pub struct InputConstraintConfig {
pub path: String,
pub deny_pattern: Option<String>,
pub max_length: Option<usize>,
}Expand description
Input constraint configuration.
Fields§
§path: StringJSON path to the field (e.g., "command", "path").
deny_pattern: Option<String>Regex pattern — if the field matches, the constraint is violated.
max_length: Option<usize>Maximum byte length for the field’s string value.
Trait Implementations§
Source§impl Clone for InputConstraintConfig
impl Clone for InputConstraintConfig
Source§fn clone(&self) -> InputConstraintConfig
fn clone(&self) -> InputConstraintConfig
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 moreSource§impl Debug for InputConstraintConfig
impl Debug for InputConstraintConfig
Source§impl<'de> Deserialize<'de> for InputConstraintConfig
impl<'de> Deserialize<'de> for InputConstraintConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InputConstraintConfig
impl RefUnwindSafe for InputConstraintConfig
impl Send for InputConstraintConfig
impl Sync for InputConstraintConfig
impl Unpin for InputConstraintConfig
impl UnsafeUnpin for InputConstraintConfig
impl UnwindSafe for InputConstraintConfig
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