Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for additional derive macros #57

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

Phosphorus-M
Copy link
Contributor

Basically, when I use ormlite with the config to create a new entity for insert, I can't deserialize it.
One case of this is when I try to deserialize from an Extractor in Axum.

Problem

image

With this patch

image

@kurtbuilds
Copy link
Owner

Looks great, thank you for the addition!

@kurtbuilds
Copy link
Owner

kurtbuilds commented Dec 5, 2024

It might be nicer to call it something like insert_derives, or there might be a way to just carry the derives from the base struct onto the main model, but happy to merge as is and iterate if it becomes an issue.

Thank you for adding this!

@kurtbuilds kurtbuilds merged commit 16b5db8 into kurtbuilds:master Dec 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants