Skip to main content

parse_bundle_metadata

Function parse_bundle_metadata 

Source
pub fn parse_bundle_metadata(text: &str) -> Result<BundleMetadata, DecodeError>
Expand description

Parse and validate a bundle metadata JSON document. Validation is the container decoder’s own (crate::decode::metadata), so the two readers agree on what is a valid document; the geo and codebook fields the API needs are read off the same object afterwards.