pub struct ValidationConfig {
pub strict_empty: bool,
pub max_query_length: usize,
pub max_package_name_length: usize,
}Expand description
What: Configuration for input validation behavior.
Inputs: None (created via ValidationConfig::default() or builder methods)
Output: ValidationConfig instance with validation settings
Details:
- Controls validation strictness for empty inputs
- Configures maximum length limits for inputs
- Can be customized via
ArchClientBuilder
Fields§
§strict_empty: boolWhether to return errors for empty inputs (strict) or empty results (lenient).
max_query_length: usizeMaximum search query length in characters (default: 256).
max_package_name_length: usizeMaximum package name length in characters (default: 127).
Trait Implementations§
Source§impl Clone for ValidationConfig
impl Clone for ValidationConfig
Source§fn clone(&self) -> ValidationConfig
fn clone(&self) -> ValidationConfig
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 ValidationConfig
impl Debug for ValidationConfig
Auto Trait Implementations§
impl Freeze for ValidationConfig
impl RefUnwindSafe for ValidationConfig
impl Send for ValidationConfig
impl Sync for ValidationConfig
impl Unpin for ValidationConfig
impl UnwindSafe for ValidationConfig
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