Trait myc_core::domain::entities::RoleFetching
source · pub trait RoleFetching: Interface + Send + Sync {
fn get<'life0, 'async_trait>(
&'life0 self,
id: Uuid
) -> Pin<Box<dyn Future<Output = Result<FetchResponseKind<RoleDTO, Uuid>, MappedErrors>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn list<'life0, 'async_trait>(
&'life0 self,
search_term: String
) -> Pin<Box<dyn Future<Output = Result<FetchManyResponseKind<RoleDTO>, MappedErrors>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
}