examples_section!() { /* proc-macro */ }Expand description
Generates a formatted Markdown examples section for the provided types.
This macro accepts a comma-separated list of types and generates a single formatted Markdown string containing examples of each type.
§Example
ⓘ
let examples = examples_section!(User, Concept);
// Produces a string like:
// ---
// ### Examples
//
// Here are examples of the data structures you should use.
//
// ---
// #### `User`
// {...json...}
// ---
// #### `Concept`
// {...json...}
// ---