Struct gift_shop::commands::CreateOrder
source · pub struct CreateOrder {
pub order_id: Uuid,
pub account_id: Uuid,
}
Fields§
§order_id: Uuid
§account_id: Uuid
Trait Implementations§
source§impl Clone for CreateOrder
impl Clone for CreateOrder
source§fn clone(&self) -> CreateOrder
fn clone(&self) -> CreateOrder
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 CreateOrder
impl Command for CreateOrder
§type Event = OrderCreated
type Event = OrderCreated
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<CreateOrder> for Order
impl CommandExecutor<CreateOrder> for Order
fn execute(cmd: CreateOrder, state: &Self) -> ExecutionResult<OrderCreated>
source§impl<'de> Deserialize<'de> for CreateOrder
impl<'de> Deserialize<'de> for CreateOrder
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 CreateOrder
impl Send for CreateOrder
impl Sync for CreateOrder
impl Unpin for CreateOrder
impl UnwindSafe for CreateOrder
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