Skip to content

Accept generics in AggregateState for aggregate id #116

Open
@cottinisimone

Description

@cottinisimone

The idea is based on possibly having a NewType for the aggregate id, so be more flexible in handling those types.

Possible solutions could be:

  • Add a new generic type to AggregateState with consequent associated type in Aggregate to have a T (like AggregateId type) implementing Into<Uuid> and From<Uuid>.
  • Modify AggregateState::new to get an impl Into<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