Crate scale_typegen_description

Source
Expand description

A crate for turning a type from a scale_info::PortableRegistry into some other, fully resolved, tree-like representation. Currently we can generate these representations for a type:

Re-exports§

pub use type_example::rust_value::example as rust_value;
pub use type_example::rust_value::example_from_seed as rust_value_from_seed;
pub use type_example::scale_value::example as scale_value;
pub use type_example::scale_value::example_from_seed as scale_value_from_seed;
pub use scale_typegen;

Modules§

transformer
Providing an abstraction for transforming type registries.
type_example
Create type examples for a type registry.

Functions§

format_type_description
Formats a type description string to have nice indents.
type_description
Describes the type that is registered under the given type_id. This type description is supposed to be very close to actual rust types, with some minar differences: