Expand description
Low-level validation functions for individual configuration values.
This module provides primitive validation functions that are used by higher-level validation systems. These functions focus on validating individual values and types without knowledge of the overall configuration structure.
§Architecture
This module is the foundation of the validation system:
crate::config::validation(this module) - Low-level validation functionscrate::config::validator- High-level configuration section validatorscrate::config::field_validator- Key-value validation for configuration service
Functions§
- parse_
bool - Parse boolean value from string.
- validate_
ai_ model - Validate AI model name format.
- validate_
api_ key - Validate API key format.
- validate_
enum - Validate a string value against a list of allowed values.
- validate_
file_ path - Validate that a path exists and is accessible.
- validate_
float_ range - Validate a float value within a specified range.
- validate_
non_ empty_ string - Validate that a string is not empty after trimming.
- validate_
positive_ number - Validate that a number is positive.
- validate_
power_ of_ two - Validate that a value is a power of two.
- validate_
range - Validate that a number is within a specified range.
- validate_
temperature - Validate temperature value for AI models.
- validate_
u64_ range - Validate a u64 value within a specified range.
- validate_
uint_ range - Validate an unsigned integer within a specified range.
- validate_
url - Validate URL format.
- validate_
url_ format - Validate that a string is a valid URL.
- validate_
usize_ range - Validate a usize value within a specified range.