pub trait SkillRegistryBackend: Send + Sync {
// Required methods
fn publish<'life0, 'async_trait>(
&'life0 self,
skill: SkillInfo,
) -> Pin<Box<dyn Future<Output = Result<(), SkillRegistryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
version: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Option<SkillInfo>, SkillRegistryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn list<'life0, 'life1, 'async_trait>(
&'life0 self,
filter: &'life1 SkillFilter,
) -> Pin<Box<dyn Future<Output = Result<Vec<SkillInfo>, SkillRegistryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn remove<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), SkillRegistryError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Storage backend for a skill registry. Implement this for a database or
cloud registry; LocalSkillRegistry is the in-process reference.
Required Methods§
Sourcefn publish<'life0, 'async_trait>(
&'life0 self,
skill: SkillInfo,
) -> Pin<Box<dyn Future<Output = Result<(), SkillRegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn publish<'life0, 'async_trait>(
&'life0 self,
skill: SkillInfo,
) -> Pin<Box<dyn Future<Output = Result<(), SkillRegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Publish (or re-publish) a skill version. Same name+version replaces.
Sourcefn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
version: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Option<SkillInfo>, SkillRegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
version: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Option<SkillInfo>, SkillRegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Resolve a skill: the exact version when given, else the latest.
Sourcefn list<'life0, 'life1, 'async_trait>(
&'life0 self,
filter: &'life1 SkillFilter,
) -> Pin<Box<dyn Future<Output = Result<Vec<SkillInfo>, SkillRegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list<'life0, 'life1, 'async_trait>(
&'life0 self,
filter: &'life1 SkillFilter,
) -> Pin<Box<dyn Future<Output = Result<Vec<SkillInfo>, SkillRegistryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List skills matching the filter — the latest version of each name.