pub struct IngestEventUseCase { /* private fields */ }Expand description
Use Case: Ingest Event
This use case handles the ingestion of a single event into the event store. It coordinates between the domain layer (Event entity) and the repository.
Responsibilities:
- Validate input (DTO validation)
- Create domain Event entity (with domain validation)
- Persist via repository
- Return response DTO
Implementations§
Source§impl IngestEventUseCase
impl IngestEventUseCase
pub fn new(repository: Arc<dyn EventRepository>) -> Self
pub async fn execute( &self, request: IngestEventRequest, ) -> Result<IngestEventResponse>
Auto Trait Implementations§
impl Freeze for IngestEventUseCase
impl !RefUnwindSafe for IngestEventUseCase
impl Send for IngestEventUseCase
impl Sync for IngestEventUseCase
impl Unpin for IngestEventUseCase
impl UnsafeUnpin for IngestEventUseCase
impl !UnwindSafe for IngestEventUseCase
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