Struct gift_shop::commands::ValidateOrder
source · pub struct ValidateOrder {
pub order_id: Uuid,
}
Fields§
§order_id: Uuid
Trait Implementations§
source§impl Clone for ValidateOrder
impl Clone for ValidateOrder
source§fn clone(&self) -> ValidateOrder
fn clone(&self) -> ValidateOrder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Command for ValidateOrder
impl Command for ValidateOrder
§type Event = OrderValidated
type Event = OrderValidated
The Event that can be generated for this command
§type ExecutorRegistry = AggregateInstanceRegistry<Order>
type ExecutorRegistry = AggregateInstanceRegistry<Order>
The registry where the command will be dispatched
type CommandHandler = NoHandler
source§fn identifier(&self) -> String
fn identifier(&self) -> String
Returns the identifier for this command. Read more
source§impl CommandExecutor<ValidateOrder> for Order
impl CommandExecutor<ValidateOrder> for Order
fn execute(cmd: ValidateOrder, state: &Self) -> ExecutionResult<OrderValidated>
source§impl<'de> Deserialize<'de> for ValidateOrder
impl<'de> Deserialize<'de> for ValidateOrder
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ValidateOrder
impl Send for ValidateOrder
impl Sync for ValidateOrder
impl Unpin for ValidateOrder
impl UnwindSafe for ValidateOrder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more