Crate structmap_derive[][src]

Implements the functionality to enable conversion between a struct type a map container type in Rust through the use of a procedural macros.

Derive Macros

FromMap

Implements the functionality for converting entries in a HashMap into attributes and values of a struct. It will consume a tokenized version of the initial struct declaration, and use code generation to implement the FromMap trait for instantiating the contents of the struct.

ToMap

Converts a given input struct into a HashMap where the keys are the attribute names assigned to the values of the entries.