We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Command can already be use with enum and newtype but the Command derive only support struct.
Command
enum
newtype
struct
#[derive(Debug)] struct AppendItem(i64); impl Command for AppendItem { type Event = ItemAppended; type Executor = ExampleAggregate; type ExecutorRegistry = AggregateInstanceRegistry<ExampleAggregate>; fn identifier(&self) -> String { "example_aggregate".to_string() } }
It could be possible to have an enum which can be dispatch to the CommandExecutor.
CommandExecutor
Some questions need to be resolved first:
identity
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Command
can already be use withenum
andnewtype
but theCommand
derive only supportstruct
.It could be possible to have an
enum
which can be dispatch to theCommandExecutor
.Some questions need to be resolved first:
identity
?The text was updated successfully, but these errors were encountered: