Skip to main content

decode_with_loader

Function decode_with_loader 

Source
pub fn decode_with_loader<F>(
    cborld_bytes: &[u8],
    options: DecodeOptions<'_>,
    document_loader: F,
) -> Result<Value>
where F: FnMut(&str) -> Result<Value>,
Expand description

Decodes CBOR-LD bytes into a JSON-LD document with a document loader.