#3173·sea-orm

Permit passing custom derives to ActiveModelEx

Author: machineonamissionCreated Aug 13, 2026Updated Aug 13, 2026

Motivation

I'm trying to get the dioxus Store derive to work on the same struct as a sea_orm::model derive so i can use the same struct for reactive data stores and also database insert queries.

Proposed Solutions

PR #2933 already permits derives to pass to Model and ModelEx, via either normal derive syntax or model_attrs. I think the best solution here is to expand this system to all other auto-generated structs, eg active_model_ex_attrs. extra derives on the entire struct will pass to all autogenerated structs, and there will also be the attrs thing for finer grain control

Additional Information

I was planning on writing this myself and PRing the fix, but I also felt it would be better to submit an issue before doing that so yall can see this.

My current barebones proof of concept:

https://github.com/machineonamission/PowerJournal/blob/8479a27a76220d766a15abb8f3939f507da3a4a1/src/views/new_entry.rs

https://github.com/SeaQL/sea-orm/commit/b3827a752b8f5c73b494ca1e82c49f288643276a