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

ScalarValue custom derive: newtype support #303

Closed
theduke opened this issue Dec 19, 2018 · 1 comment · Fixed by #368
Closed

ScalarValue custom derive: newtype support #303

theduke opened this issue Dec 19, 2018 · 1 comment · Fixed by #368
Assignees

Comments

@theduke
Copy link
Member

theduke commented Dec 19, 2018

Extend the (GraphQL)ScalarValue custom derive to support newtype structs.

This should work similar to how serde does it with #[serde(transparent)].

(I'm working on this).

Example:

#[derive(GraphQLScalarValue)]
struct MyCustomId(Uuid);
@mwilliammyers
Copy link

Are you still working on this or should I take a crack at it?

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 a pull request may close this issue.

2 participants