Skip to main content

parse_currency_label

Function parse_currency_label 

Source
pub fn parse_currency_label(s: &str) -> Result<i32>
Expand description

Parse a user-facing currency code into Trd_Common.Currency enum int.

This is the shared contract for CLI / MCP / REST-like adapters that accept textual currency input. Unknown values must be rejected loudly by the caller instead of silently falling back to “no currency”.