Skip to main content

decode

Function decode 

Source
pub fn decode(
    catalog: &Catalog,
    ty: &Type,
    json: &Json,
    mode: Mode,
    limits: &Limits,
) -> Result<Value, DecodeError>
Expand description

Decodes json as a value of ty.

ยงErrors

A DecodeError when ty cannot be decoded in mode, or json is not a value of it within limits.