Crate idl2json

Source
Expand description

Library of IDL (candid) to JSON conversion functions.

Modules§

candid_types
Code for manipulating candid types.
polyfill
Code that should be pushed upstream.

Structs§

Idl2JsonOptions
Options for idl2json conversions

Enums§

BytesFormat
Options for how to represent Vec<u8>
JsonValue
Represents any valid JSON value.

Functions§

idl2json
Converts a candid IDLValue to a serde JsonValue, without type information.
idl2json_with_weak_names
Converts a candid IDLValue to a serde JsonValue, with keys as names where possible.
idl_args2json
Converts a candid IDLArgs to a serde JsonValue, without type information.
idl_args2json_with_weak_names
Converts a candid IDLArgs to a serde JsonValue, with keys as names where possible.