Struct gift_shop::gift_card::GiftCardProjector
source · pub struct GiftCardProjector {
pub pool: PgPool,
}
Fields§
§pool: PgPool
Trait Implementations§
source§impl Clone for GiftCardProjector
impl Clone for GiftCardProjector
source§fn clone(&self) -> GiftCardProjector
fn clone(&self) -> GiftCardProjector
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 EventHandler for GiftCardProjector
impl EventHandler for GiftCardProjector
fn handle_recorded_event<'life0, 'async_trait>( state: &'life0 mut Self, event: RecordedEvent ) -> Pin<Box<dyn Future<Output = Result<(), HandleError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
fn builder(self) -> EventHandlerBuilder<Self>
fn listen<A>(&self, _ctx: &mut Context<EventHandlerInstance<A, Self>>)where A: Application,
fn started<A>(&mut self, _ctx: &mut Context<EventHandlerInstance<A, Self>>)where A: Application, Self: EventHandler,
source§impl Handler<GiftCardCreated> for GiftCardProjector
impl Handler<GiftCardCreated> for GiftCardProjector
fn handle( &mut self, event: &GiftCardCreated ) -> BoxFuture<'_, Result<(), HandleError>>
Auto Trait Implementations§
impl !RefUnwindSafe for GiftCardProjector
impl Send for GiftCardProjector
impl Sync for GiftCardProjector
impl Unpin for GiftCardProjector
impl !UnwindSafe for GiftCardProjector
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