Code generation

SuperStruct generates several types, methods and trait implementations.

You should visit each of the sub-pages in order to understand how the generated code fits together:

  1. Variant structs.
  2. Top-level enum.
  3. Ref and RefMut.
  4. Mapping macros.

Example

For a full, up-to-date example of the code generated, please see the RustDoc output for the Request example.