parse_optional_decimal

Function parse_optional_decimal 

pub fn parse_optional_decimal(
    s: &Option<String>,
) -> Result<Option<Decimal>, Error>
Expand description

Parses an optional string to Decimal, returning None if the string is None or empty.

ยงErrors

Returns an error if the string cannot be parsed as a Decimal.