VersionCmdRunnerApi

Trait VersionCmdRunnerApi 

Source
pub trait VersionCmdRunnerApi: Send + Sync {
    // Required methods
    fn create_jira_version<'life0, 'async_trait>(
        &'life0 self,
        params: VersionCmdParams,
    ) -> Pin<Box<dyn Future<Output = Result<(Version, Option<Vec<(String, String, String, String)>>), Box<dyn Error>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_jira_versions<'life0, 'async_trait>(
        &'life0 self,
        params: VersionCmdParams,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Version>, Box<dyn Error>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_jira_version<'life0, 'async_trait>(
        &'life0 self,
        params: VersionCmdParams,
    ) -> Pin<Box<dyn Future<Output = Result<Version, Box<dyn Error>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_jira_version<'life0, 'async_trait>(
        &'life0 self,
        params: VersionCmdParams,
    ) -> Pin<Box<dyn Future<Output = Result<Version, Box<dyn Error>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_jira_version<'life0, 'async_trait>(
        &'life0 self,
        params: VersionCmdParams,
    ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_jira_version_related_work<'life0, 'async_trait>(
        &'life0 self,
        params: VersionCmdParams,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<VersionRelatedWork>, Error<GetRelatedWorkError>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

API contract for performing Jira version operations.

Required Methods§

Source

fn create_jira_version<'life0, 'async_trait>( &'life0 self, params: VersionCmdParams, ) -> Pin<Box<dyn Future<Output = Result<(Version, Option<Vec<(String, String, String, String)>>), Box<dyn Error>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a Jira version and optionally transitions referenced issues.

Source

fn list_jira_versions<'life0, 'async_trait>( &'life0 self, params: VersionCmdParams, ) -> Pin<Box<dyn Future<Output = Result<Vec<Version>, Box<dyn Error>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Lists versions for a project with optional pagination.

Source

fn get_jira_version<'life0, 'async_trait>( &'life0 self, params: VersionCmdParams, ) -> Pin<Box<dyn Future<Output = Result<Version, Box<dyn Error>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves a Jira version by id or name.

Source

fn update_jira_version<'life0, 'async_trait>( &'life0 self, params: VersionCmdParams, ) -> Pin<Box<dyn Future<Output = Result<Version, Box<dyn Error>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates an existing Jira version.

Source

fn delete_jira_version<'life0, 'async_trait>( &'life0 self, params: VersionCmdParams, ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a Jira version, optionally replacing it.

Retrieves work items related to a Jira version.

Implementors§