Attribute Macro command
Source #[command]
Available on crate features cqrs and di only.
Expand description
Marks a struct as a Command (CQRS write operation)
Commands represent write operations that change state and produce events.
§Example
ⓘ#[command]
struct CreateUserCommand {
email: String,
name: String,
}