pub struct QueryEventsUseCase { /* private fields */ }Expand description
Use Case: Query Events
This use case handles querying events from the event store with various filters.
Responsibilities:
- Validate query parameters
- Determine query strategy (by entity, by type, by time range, etc.)
- Execute query via repository
- Transform domain events to DTOs
- Apply limits and pagination
Implementations§
Source§impl QueryEventsUseCase
impl QueryEventsUseCase
pub fn new(repository: Arc<dyn EventRepository>) -> Self
pub async fn execute( &self, request: QueryEventsRequest, ) -> Result<QueryEventsResponse>
Auto Trait Implementations§
impl Freeze for QueryEventsUseCase
impl !RefUnwindSafe for QueryEventsUseCase
impl Send for QueryEventsUseCase
impl Sync for QueryEventsUseCase
impl Unpin for QueryEventsUseCase
impl UnsafeUnpin for QueryEventsUseCase
impl !UnwindSafe for QueryEventsUseCase
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