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