pub fn validate_non_negative( field: &str, value: Option<f64>, ) -> Result<Option<f64>, AppError>
Validates an optional non-negative number such as a mass or a cost.