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
10
11
12
13
14
15
16
17
18
error[E0277]: the trait bound `u32: StringType` is not satisfied
 --> tests/ui/wrong_type.rs:6:12
  |
6 |     count: u32,
  |            ^^^ the trait `StringType` is not implemented for `u32`
  |
  = help: the following other types implement trait `StringType`:
            &str
            Box<T>
            Cow<'_, str>
            Option<T>
            std::string::String
note: required by a bound in `__rydantic_assert_string`
 --> tests/ui/wrong_type.rs:3:10
  |
3 | #[derive(Model)]
  |          ^^^^^ required by this bound in `__rydantic_assert_string`
  = note: this error originates in the derive macro `Model` (in Nightly builds, run with -Z macro-backtrace for more info)