pub struct GiftCard {
pub gift_card_id: Option<Uuid>,
pub name: String,
pub price: i64,
pub count: i32,
pub gift_card_state: GiftCardState,
}
Fields§
§gift_card_id: Option<Uuid>
§name: String
§price: i64
§count: i32
§gift_card_state: GiftCardState
Trait Implementations§
source§impl CommandExecutor<CreateGiftCard> for GiftCard
impl CommandExecutor<CreateGiftCard> for GiftCard
fn execute( cmd: CreateGiftCard, state: &Self ) -> ExecutionResult<GiftCardCreated>
source§impl EventApplier<GiftCardCreated> for GiftCard
impl EventApplier<GiftCardCreated> for GiftCard
fn apply(&mut self, event: &GiftCardCreated) -> Result<(), ApplyError>
Auto Trait Implementations§
impl RefUnwindSafe for GiftCard
impl Send for GiftCard
impl Sync for GiftCard
impl Unpin for GiftCard
impl UnwindSafe for GiftCard
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