Skip to main content

validate

Function validate 

Source
pub fn validate(expression: &str, value: &str) -> Result<bool, String>
Expand description

Evaluate a validation expression for one raw CLI value.

A valid expression must return a boolean. false means the value does not satisfy the declaration; an evaluator error or a non-boolean result means the declaration itself is invalid.