pub trait ListService<E: Send + Sync + 'static>: Send + Sync {
// Required method
fn list<'life0, 'async_trait>(
&'life0 self,
params: ListParams,
) -> Pin<Box<dyn Future<Output = UseCaseResult<ListResult<E>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Service contract for the list use case (separate because it needs pagination).
Required Methods§
fn list<'life0, 'async_trait>(
&'life0 self,
params: ListParams,
) -> Pin<Box<dyn Future<Output = UseCaseResult<ListResult<E>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".