[go: up one dir, main page]

schemars 1.0.3

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() {}