Function check_positive_quantity

Source
pub fn check_positive_quantity(value: Quantity, param: &str) -> Result<()>
Expand description

Checks if the given quantity is positive.

ยงErrors

Returns an error if the quantity is not positive.