schemars 1.2.1

Generate JSON Schemas from Rust code
Documentation
1
2
3
4
5
6
7
8
9
use schemars::JsonSchema;

#[derive(JsonSchema)]
#[schemars(example = "my_fn")]
pub struct Struct;

fn my_fn() {}

fn main() {}