Trait SkillManagementService
Source pub trait SkillManagementService: Send + Sync {
// Required methods
fn register_skill<'life0, 'async_trait>(
&'life0 self,
skill: SkillDefinition,
) -> Pin<Box<dyn Future<Output = Result<SkillId, ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn force_register_skill<'life0, 'async_trait>(
&'life0 self,
skill: SkillDefinition,
) -> Pin<Box<dyn Future<Output = Result<SkillId, ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_skill<'life0, 'life1, 'async_trait>(
&'life0 self,
skill_id: &'life1 SkillId,
) -> Pin<Box<dyn Future<Output = Result<Option<SkillDefinition>, ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_skill<'life0, 'life1, 'async_trait>(
&'life0 self,
skill_id: &'life1 SkillId,
updates: SkillUpdate,
) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn unregister_skill<'life0, 'life1, 'async_trait>(
&'life0 self,
skill_id: &'life1 SkillId,
) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_skills<'life0, 'async_trait>(
&'life0 self,
filters: Option<SkillFilters>,
) -> Pin<Box<dyn Future<Output = Result<Vec<SkillDefinition>, ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn enable_skill<'life0, 'life1, 'async_trait>(
&'life0 self,
skill_id: &'life1 SkillId,
) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn disable_skill<'life0, 'life1, 'async_trait>(
&'life0 self,
skill_id: &'life1 SkillId,
) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}