Skip to content

Add custom use and derive for Rust #3

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

Merged
merged 3 commits into from
Mar 22, 2023

Conversation

alissapajer
Copy link
Member

original PR: jsontypedef#31

AdamLeyshon and others added 3 commits July 12, 2021 22:33
…tructs.

This allows us to additional `use` statements or `derive` macros on generated structs.

`rustCustomUse` is a string of use statments separated by `;`
It supports single and multi-import statements.
For example: `serde::{Deserialize, Serialize}` or `serde::Serialize` are both valid.

`rustCustomUse` is a string of derive identifers separated by `,`
For example: `FromSqlRow,AsExpression,Debug,Default`
@alissapajer alissapajer changed the title Feature/add custom use and derive Add custom use and derive for Rust Mar 22, 2023
@alissapajer alissapajer merged commit 18d34e8 into master Mar 22, 2023
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