Skip to main content

decode_pairs

Function decode_pairs 

Source
pub fn decode_pairs<I>(
    pairs: I,
    options: &DecodeOptions,
) -> Result<Object, DecodeError>
where I: IntoIterator<Item = (String, Value)>,
Expand description

Decodes an iterator of already-separated key/value pairs into an ordered object map.

This entrypoint skips raw query-string scanning but otherwise applies the same flat-finalization and structured-merge rules as decode.

ยงErrors

Returns DecodeError when the supplied DecodeOptions are invalid or when a configured list or depth limit is exceeded during reconstruction.