Skip to content

ScalarValue custom derive: newtype support #303

Closed
@theduke

Description

@theduke

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);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions