Trait PluginClient

Source
pub trait PluginClient {
    // Required methods
    fn list_plugins<'life0, 'life1, 'async_trait>(
        &'life0 self,
        scope: &'life1 PluginScope,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<PluginDefinition>, Error<PluginError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn create_plugin<'life0, 'life1, 'async_trait>(
        &'life0 self,
        value: &'life1 PluginDefinitionCreation,
    ) -> Pin<Box<dyn Future<Output = Result<Empty, Error<PluginError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn create_app_plugin<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
        &'life0 self,
        name: &'life1 str,
        version: &'life2 str,
        description: &'life3 str,
        icon: impl 'async_trait + Into<Body> + Send,
        homepage: &'life4 str,
        scope: &'life5 PluginScope,
        wasm: impl 'async_trait + Into<Body> + Send,
    ) -> Pin<Box<dyn Future<Output = Result<Empty, Error<PluginError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait,
             'life5: 'async_trait;
    fn get_plugin<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        account_id: &'life1 str,
        name: &'life2 str,
        version: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = Result<PluginDefinition, Error<PluginError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn delete_plugin<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        account_id: &'life1 str,
        name: &'life2 str,
        version: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = Result<Empty, Error<PluginError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn create_library_plugin<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
        &'life0 self,
        name: &'life1 str,
        version: &'life2 str,
        description: &'life3 str,
        icon: impl 'async_trait + Into<Body> + Send,
        homepage: &'life4 str,
        scope: &'life5 PluginScope,
        wasm: impl 'async_trait + Into<Body> + Send,
    ) -> Pin<Box<dyn Future<Output = Result<Empty, Error<PluginError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait,
             'life5: 'async_trait;
}

Required Methods§

Source

fn list_plugins<'life0, 'life1, 'async_trait>( &'life0 self, scope: &'life1 PluginScope, ) -> Pin<Box<dyn Future<Output = Result<Vec<PluginDefinition>, Error<PluginError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn create_plugin<'life0, 'life1, 'async_trait>( &'life0 self, value: &'life1 PluginDefinitionCreation, ) -> Pin<Box<dyn Future<Output = Result<Empty, Error<PluginError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn create_app_plugin<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>( &'life0 self, name: &'life1 str, version: &'life2 str, description: &'life3 str, icon: impl 'async_trait + Into<Body> + Send, homepage: &'life4 str, scope: &'life5 PluginScope, wasm: impl 'async_trait + Into<Body> + Send, ) -> Pin<Box<dyn Future<Output = Result<Empty, Error<PluginError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait,

Source

fn get_plugin<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, account_id: &'life1 str, name: &'life2 str, version: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<PluginDefinition, Error<PluginError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn delete_plugin<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, account_id: &'life1 str, name: &'life2 str, version: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<Empty, Error<PluginError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn create_library_plugin<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>( &'life0 self, name: &'life1 str, version: &'life2 str, description: &'life3 str, icon: impl 'async_trait + Into<Body> + Send, homepage: &'life4 str, scope: &'life5 PluginScope, wasm: impl 'async_trait + Into<Body> + Send, ) -> Pin<Box<dyn Future<Output = Result<Empty, Error<PluginError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§