Skip to content

deriving callback for structs #21

@matt-beanland

Description

@matt-beanland

See https://hexdocs.pm/elixir/Kernel.html, defstruct allows @derive on struct definition or Protocol.derive call if protocol implements deriving/2 callback.

deriving/3 supports options, we could allow specification of what fields to include :only, or exclude, and what struct names to match.

Implementation would follow map but need actual to be same struct.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions