pub trait SkillHubClient:
Send
+ Sync
+ Debug {
// Required methods
fn download_skill<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
group: &'life1 str,
name: &'life2 str,
version: &'life3 str,
user_authorization: &'life4 str,
) -> Pin<Box<dyn Future<Output = Result<SkillPackage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait;
fn search_skills<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 SkillSearchQuery,
user_authorization: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<SkillSearchPage>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Downloads a published skill archive. Implementations live in adapter crates.
Required Methods§
fn download_skill<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
group: &'life1 str,
name: &'life2 str,
version: &'life3 str,
user_authorization: &'life4 str,
) -> Pin<Box<dyn Future<Output = Result<SkillPackage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn search_skills<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 SkillSearchQuery,
user_authorization: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<SkillSearchPage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".