Skip to main content

not_empty

Function not_empty 

Source
pub fn not_empty(input: &str, value: &Value) -> Result<(), String>
Expand description

Validate that input is not empty

§Arguments

  • input - The user input to validate
  • value - The validation value (true/false)

§Returns

  • Ok(()) if validation passes
  • Err(message) with descriptive error message if validation fails