Skip to main content

parse_fields

Function parse_fields 

Source
pub fn parse_fields(value: &str) -> Result<HashMap<String, String>, AamlError>
Expand description

Parses key-value pairs using the AAM pipeline (AAM::parse).

  • Inline objects { k = v, ... } are wrapped as _ = { ... } before entering the pipeline, then unwrapped.
  • Full documents k = v\n... go through the pipeline directly.

ยงErrors

Returns an error if the value cannot be parsed into key-value pairs.