Skip to content

Use interface types for Go discriminators#78

Closed
ryanatallah wants to merge 13 commits intojsontypedef:masterfrom
spindle-app:go-interfaces
Closed

Use interface types for Go discriminators#78
ryanatallah wants to merge 13 commits intojsontypedef:masterfrom
spindle-app:go-interfaces

Conversation

@ryanatallah
Copy link
Copy Markdown

Pulls in #68

AdamLeyshon and others added 13 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`
Struct fields should be snake_case, but they were accidentaly set to
camelCase.
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.

4 participants