You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: changelog/2.0.0-rc.35.md
+85-3Lines changed: 85 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,16 +21,98 @@ Nested transactions correctly fall back to `SAVEPOINT` regardless of the mode.
21
21
22
22
**Extend `DeriveIntoActiveModel`** (#2961)
23
23
24
-
`DeriveIntoActiveModel` now supports `set`/`fill`, `default`, `ignore`, and `exhaustive` attributes for more control when converting "form" structs into ActiveModels:
24
+
`DeriveIntoActiveModel` now supports `set`/`fill`, `default`, `ignore`, `skip`, `exhaustive`, and custom `active_model` path attributes for fine-grained control when converting "form" or "input" structs into ActiveModels.
25
+
26
+
**`set` / `fill`** — always set fields not present on the struct:
Bare `#[sea_orm(default)]` (without a value) uses `Default::default()` as the fallback. This also works with custom enum types that implement `Into<Option<T>>`.
74
+
75
+
**`ignore` / `skip`** — exclude struct fields from the ActiveModel:
0 commit comments