Module compiler

Module compiler 

Source

Functions§

compile_schema
Compile a textual schema into (Schema, Vec<u8>). Returns Err(KiwiError) if tokenization/parsing/verification fails.
decode_binary_schema
Decode a binary schema buffer back into a Schema. Returns Err(KiwiError) on any read failure or invalid data.
encode_binary_schema
Encode a Schema into bytes. Returns Err(KiwiError::EncodeError) if any field’s type is invalid.