ProjectClient

Trait ProjectClient 

Source
pub trait ProjectClient {
    // Required methods
    fn get_projects<'life0, 'life1, 'async_trait>(
        &'life0 self,
        project_name: Option<&'life1 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Project>, Error<ProjectError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn create_project<'life0, 'life1, 'async_trait>(
        &'life0 self,
        value: &'life1 ProjectDataRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Project, Error<ProjectError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_default_project<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Project, Error<ProjectError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_project_actions<'life0, 'life1, 'async_trait>(
        &'life0 self,
        project_id: &'life1 Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ProjectPermission>, Error<ProjectError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn batch_update_installed_plugins_of_project<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        project_id: &'life1 Uuid,
        value: &'life2 BatchPluginInstallationUpdates,
    ) -> Pin<Box<dyn Future<Output = Result<Empty, Error<ProjectError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_installed_plugins_of_project<'life0, 'life1, 'async_trait>(
        &'life0 self,
        project_id: &'life1 Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<PluginInstallation>, Error<ProjectError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn install_plugin_to_project<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        project_id: &'life1 Uuid,
        value: &'life2 PluginInstallationCreation,
    ) -> Pin<Box<dyn Future<Output = Result<PluginInstallation, Error<ProjectError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn uninstall_plugin_from_project<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        project_id: &'life1 Uuid,
        installation_id: &'life2 Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Empty, Error<ProjectError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn update_installed_plugin_in_project<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        project_id: &'life1 Uuid,
        installation_id: &'life2 Uuid,
        value: &'life3 PluginInstallationUpdate,
    ) -> Pin<Box<dyn Future<Output = Result<Empty, Error<ProjectError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn get_project<'life0, 'life1, 'async_trait>(
        &'life0 self,
        project_id: &'life1 Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Project, Error<ProjectError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn delete_project<'life0, 'life1, 'async_trait>(
        &'life0 self,
        project_id: &'life1 Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<DeleteProjectResponse, Error<ProjectError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn get_projects<'life0, 'life1, 'async_trait>( &'life0 self, project_name: Option<&'life1 str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Project>, Error<ProjectError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn create_project<'life0, 'life1, 'async_trait>( &'life0 self, value: &'life1 ProjectDataRequest, ) -> Pin<Box<dyn Future<Output = Result<Project, Error<ProjectError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_default_project<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Project, Error<ProjectError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_project_actions<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<ProjectPermission>, Error<ProjectError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

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

Source

fn get_installed_plugins_of_project<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<PluginInstallation>, Error<ProjectError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

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

Source

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

Source

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

Source

fn get_project<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Project, Error<ProjectError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn delete_project<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<DeleteProjectResponse, Error<ProjectError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§