rydantic 0.2.0

Type-driven models, validation, JSON Schema and native Cap'n Proto for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
use rydantic::Model;

#[derive(Model)]
struct Broken {
    #[model(rename = "value")]
    first: String,
    #[model(rename = "value")]
    second: String,
}

fn main() {}