Add examples to docs

This commit is contained in:
Graham Esau 2019-12-26 21:34:08 +00:00
parent d67abbdbb1
commit f387a0ec56
11 changed files with 223 additions and 17 deletions

View file

@ -0,0 +1,13 @@
---
layout: default
title: Deriving JsonSchema
parent: Examples
nav_order: 1
summary: Deriving JsonSchema on a struct and enum.
---
# Deriving JsonSchema
This is the simplest usage of Schemars. Both types are made to derive `JsonSchema`, and the `schema_for!` macro is used to generate the schema itself.
{% include example.md name="main" %}