Skip to main content

parse_collection

Function parse_collection 

Source
pub fn parse_collection(bytes: &[u8]) -> Result<Collection, ModelError>
Expand description

Parse a collection and validate it.

ยงErrors

Returns an error when JSON or collection constraints fail.