pub fn parse_quantity(value: &str, precision: u8) -> Result<Quantity>
Converts a textual quantity to a Quantity.
Quantity
Returns an error for the same reasons as parse_price – parsing failure or invalid precision.
parse_price