entity-derive 0.22.8

Derive macro for generating DTOs, repositories, and SQL from a single entity definition
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: pattern requires `..` due to inaccessible fields
  --> tests/cases/fail/embed_shape_mismatch.rs:14:24
   |
14 | #[derive(Debug, Clone, Entity)]
   |                        ^^^^^^
   |
   = note: this error originates in the derive macro `Entity` (in Nightly builds, run with -Z macro-backtrace for more info)
help: ignore the inaccessible and unused fields
   |
21 |     #[embed(prefix = "price_", fields(amount_cents: i64, currency, ..: String))]
   |                                                                  ++++

error[E0063]: missing field `precision` in initializer of `Money`
  --> tests/cases/fail/embed_shape_mismatch.rs:22:16
   |
22 |     pub price: Money,
   |                ^^^^^ missing `precision`