rydantic 0.6.0

Type-driven validation, JSON Schema, Cap'n Proto, Axum and SQLx models for Rust
Documentation
1
2
3
4
5
6
7
8
9
use rydantic::{Model, SqlModel};
#[derive(Debug, Model, SqlModel)]
struct Bad {
    #[sql(primary_key)]
    id: i64,
    #[sql(default = String::new())]
    value: String,
}
fn main() {}