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:
- A human readable description of the type via crate::type_description.
- An exemplary rust value of the type via crate::rust_value.
- An exemplary scale value of the type via crate::scale_value.
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: