Skip to main content

decode_sequence

Function decode_sequence 

Source
pub fn decode_sequence<T: DeserializeOwned>(
    body: &str,
    format: ContentFormat,
    item_name: &str,
) -> Result<Vec<T>>
Expand description

Decode a portable JSON or YAML sequence.

Callers decide whether an empty artifact is meaningful. Element failures name both the content kind and the zero-based element index.