Skip to main content

from_bytes

Function from_bytes 

Source
pub fn from_bytes(
    bytes: &[u8],
    root: SchemaId,
    registry: &Registry,
) -> Result<Value, CompactError>
Expand description

Decode a value of schema root from bytes, rejecting trailing bytes.

ยงErrors

CompactError for malformed input or an unsupported kind.