validate_non_empty_string

Function validate_non_empty_string 

Source
pub fn validate_non_empty_string(
    value: &str,
    field_name: &str,
) -> SubXResult<()>
Expand description

Validate that a string is not empty after trimming.

§Arguments

  • value - The string to validate
  • field_name - Name of the field for error messages

§Errors

Returns error if the string is empty or contains only whitespace.