Skip to main content

artifact_decode_schema

Function artifact_decode_schema 

Source
pub fn artifact_decode_schema(
    bytes: &[u8],
) -> Result<Schema, BundledSchemaError>
Expand description

Decodes a compiled schema artifact produced by encode_schema (the generation feature).

ยงErrors

Returns BundledSchemaError if the artifact is malformed, oversized, or carries an unsupported format version.