Struct gift_shop::events::gift_card::GiftCardCreated
source · pub struct GiftCardCreated {
pub gift_card_id: Uuid,
pub name: String,
pub price: i64,
pub count: i16,
}
Fields§
§gift_card_id: Uuid
§name: String
§price: i64
§count: i16
Trait Implementations§
source§impl Clone for GiftCardCreated
impl Clone for GiftCardCreated
source§fn clone(&self) -> GiftCardCreated
fn clone(&self) -> GiftCardCreated
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<'de> Deserialize<'de> for GiftCardCreated
impl<'de> Deserialize<'de> for GiftCardCreated
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
source§impl Event for GiftCardCreated
impl Event for GiftCardCreated
source§impl EventApplier<GiftCardCreated> for GiftCard
impl EventApplier<GiftCardCreated> for GiftCard
fn apply(&mut self, event: &GiftCardCreated) -> Result<(), ApplyError>
source§impl Handler<GiftCardCreated> for GiftCardProjector
impl Handler<GiftCardCreated> for GiftCardProjector
fn handle( &mut self, event: &GiftCardCreated ) -> BoxFuture<'_, Result<(), HandleError>>
source§impl Serialize for GiftCardCreated
impl Serialize for GiftCardCreated
source§impl TryFrom<RecordedEvent> for GiftCardCreated
impl TryFrom<RecordedEvent> for GiftCardCreated
impl Event for GiftCardCreated
Auto Trait Implementations§
impl RefUnwindSafe for GiftCardCreated
impl Send for GiftCardCreated
impl Sync for GiftCardCreated
impl Unpin for GiftCardCreated
impl UnwindSafe for GiftCardCreated
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