Skip to content

Generate Active Model from Two Models' Differences #3067

Description

@SamuNatsu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions