Skip to main content

encode_schema_fragment

Function encode_schema_fragment 

Source
pub fn encode_schema_fragment(
    fragment: &SchemaFragment,
) -> Result<Vec<u8>, SchemaContractError>
Expand description

Encode one canonical schema fragment.

ยงErrors

Returns a typed contract or size error when the fragment is malformed or exceeds the frozen transport bound.