Motivation
The model is serialized then edited by an external editor, which would deserialize back to a new model after editing.
Do a full update is ok, while find the diffs between old and new model for on-demand updating is more clever.
Proposed Solutions
Provide a new method for derive macros like fn create_diff_active_model(old_model: &Model) -> ActiveModel is enough.
Additional Information
Motivation
The model is serialized then edited by an external editor, which would deserialize back to a new model after editing.
Do a full update is ok, while find the diffs between old and new model for on-demand updating is more clever.
Proposed Solutions
Provide a new method for derive macros like
fn create_diff_active_model(old_model: &Model) -> ActiveModelis enough.Additional Information