parse_price

Function parse_price 

Source
pub fn parse_price(value: &str, field_name: &str) -> Result<Price>
Expand description

Parses a decimal string into a Price.

ยงErrors

Returns an error if the string cannot be parsed into a valid price.