ComponentClient

Trait ComponentClient 

Source
pub trait ComponentClient {
Show 15 methods // Required methods fn update_component<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, component_type: Option<&'life2 ComponentType>, component: impl 'async_trait + Into<Body> + Send, files_permissions: Option<&'life3 ComponentFilePathWithPermissionsList>, files: Option<impl 'async_trait + Into<Body> + Send>, dynamic_linking: Option<&'life4 DynamicLinking>, env: Option<&'life5 ComponentEnv>, agent_types: Option<&'life6 AgentTypes>, ) -> Pin<Box<dyn Future<Output = Result<Component, Error<ComponentError>>> + 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, 'life6: 'async_trait; fn batch_update_installed_plugins<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, value: &'life2 BatchPluginInstallationUpdates, ) -> Pin<Box<dyn Future<Output = Result<Empty, Error<ComponentError>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn download_component_file<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, version: &'life2 str, file_path: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error<ComponentError>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait; fn get_component_metadata<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, version: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Component, Error<ComponentError>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn get_latest_component_metadata<'life0, 'life1, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Component, Error<ComponentError>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_components<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: Option<&'life1 Uuid>, component_name: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Component>, Error<ComponentError>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn create_component<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>( &'life0 self, query: &'life1 ComponentQuery, component: impl 'async_trait + Into<Body> + Send, component_type: Option<&'life2 ComponentType>, files_permissions: Option<&'life3 ComponentFilePathWithPermissionsList>, files: Option<impl 'async_trait + Into<Body> + Send>, dynamic_linking: Option<&'life4 DynamicLinking>, env: Option<&'life5 ComponentEnv>, agent_types: Option<&'life6 AgentTypes>, ) -> Pin<Box<dyn Future<Output = Result<Component, Error<ComponentError>>> + 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, 'life6: 'async_trait; fn uninstall_plugin<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, installation_id: &'life2 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Empty, Error<ComponentError>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn search_components<'life0, 'life1, 'async_trait>( &'life0 self, value: &'life1 ComponentSearch, ) -> Pin<Box<dyn Future<Output = Result<Vec<Component>, Error<ComponentError>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_component_metadata_all_versions<'life0, 'life1, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<Component>, Error<ComponentError>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn upload_component<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, component_type: Option<&'life2 ComponentType>, value: impl 'async_trait + Into<Body> + Send, ) -> Pin<Box<dyn Future<Output = Result<Component, Error<ComponentError>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn install_plugin<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, value: &'life2 PluginInstallationCreation, ) -> Pin<Box<dyn Future<Output = Result<PluginInstallation, Error<ComponentError>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn download_component<'life0, 'life1, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, version: Option<u64>, ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error<ComponentError>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn update_installed_plugin<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, installation_id: &'life2 Uuid, value: &'life3 PluginInstallationUpdate, ) -> Pin<Box<dyn Future<Output = Result<Empty, Error<ComponentError>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait; fn get_installed_plugins<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, version: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<PluginInstallation>, Error<ComponentError>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait;
}

Required Methods§

Source

fn update_component<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, component_type: Option<&'life2 ComponentType>, component: impl 'async_trait + Into<Body> + Send, files_permissions: Option<&'life3 ComponentFilePathWithPermissionsList>, files: Option<impl 'async_trait + Into<Body> + Send>, dynamic_linking: Option<&'life4 DynamicLinking>, env: Option<&'life5 ComponentEnv>, agent_types: Option<&'life6 AgentTypes>, ) -> Pin<Box<dyn Future<Output = Result<Component, Error<ComponentError>>> + 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, 'life6: 'async_trait,

Source

fn batch_update_installed_plugins<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, value: &'life2 BatchPluginInstallationUpdates, ) -> Pin<Box<dyn Future<Output = Result<Empty, Error<ComponentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn download_component_file<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, version: &'life2 str, file_path: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error<ComponentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn get_component_metadata<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, version: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Component, Error<ComponentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn get_latest_component_metadata<'life0, 'life1, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Component, Error<ComponentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_components<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: Option<&'life1 Uuid>, component_name: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Component>, Error<ComponentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn create_component<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>( &'life0 self, query: &'life1 ComponentQuery, component: impl 'async_trait + Into<Body> + Send, component_type: Option<&'life2 ComponentType>, files_permissions: Option<&'life3 ComponentFilePathWithPermissionsList>, files: Option<impl 'async_trait + Into<Body> + Send>, dynamic_linking: Option<&'life4 DynamicLinking>, env: Option<&'life5 ComponentEnv>, agent_types: Option<&'life6 AgentTypes>, ) -> Pin<Box<dyn Future<Output = Result<Component, Error<ComponentError>>> + 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, 'life6: 'async_trait,

Source

fn uninstall_plugin<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, installation_id: &'life2 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Empty, Error<ComponentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn search_components<'life0, 'life1, 'async_trait>( &'life0 self, value: &'life1 ComponentSearch, ) -> Pin<Box<dyn Future<Output = Result<Vec<Component>, Error<ComponentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_component_metadata_all_versions<'life0, 'life1, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<Component>, Error<ComponentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn upload_component<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, component_type: Option<&'life2 ComponentType>, value: impl 'async_trait + Into<Body> + Send, ) -> Pin<Box<dyn Future<Output = Result<Component, Error<ComponentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn install_plugin<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, value: &'life2 PluginInstallationCreation, ) -> Pin<Box<dyn Future<Output = Result<PluginInstallation, Error<ComponentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn download_component<'life0, 'life1, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, version: Option<u64>, ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error<ComponentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn update_installed_plugin<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, installation_id: &'life2 Uuid, value: &'life3 PluginInstallationUpdate, ) -> Pin<Box<dyn Future<Output = Result<Empty, Error<ComponentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn get_installed_plugins<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, component_id: &'life1 Uuid, version: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<PluginInstallation>, Error<ComponentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: '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§