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.
pub fn parse_collection(bytes: &[u8]) -> Result<Collection, ModelError>Parse a collection and validate it.
Returns an error when JSON or collection constraints fail.