Skip to main content

Release

Trait Release 

Source
pub trait Release: Send + Sync {
    // Required methods
    fn create<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        repo_path: RepoPath,
        tag_name: &'life1 str,
        name: Option<&'life2 str>,
        body: Option<&'life3 str>,
        target_commitish: Option<&'life4 str>,
    ) -> Pin<Box<dyn Future<Output = Result<ReleaseInfo, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait,
             Self: 'async_trait;
    fn info<'life0, 'life1, 'async_trait>(
        &'life0 self,
        repo_path: RepoPath,
        tag_name: Option<&'life1 str>,
    ) -> Pin<Box<dyn Future<Output = Result<ReleaseInfo, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
    fn list<'life0, 'async_trait>(
        &'life0 self,
        repo_path: RepoPath,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ReleaseInfo>, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn update<'life0, 'life1, 'async_trait>(
        &'life0 self,
        repo_path: RepoPath,
        tag_name: &'life1 str,
        option: UpdateOption,
    ) -> Pin<Box<dyn Future<Output = Result<ReleaseInfo, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
}

Required Methods§

Source

fn create<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, repo_path: RepoPath, tag_name: &'life1 str, name: Option<&'life2 str>, body: Option<&'life3 str>, target_commitish: Option<&'life4 str>, ) -> Pin<Box<dyn Future<Output = Result<ReleaseInfo, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, Self: 'async_trait,

创建一个Release

当为传入参数为None则使用tag_name

§参数
  • repo_path - 仓库路径
  • tag_name - 标签名称
  • name - Release名称
  • body - Release内容
  • target_commitish - 目标提交SHA或分支
Source

fn info<'life0, 'life1, 'async_trait>( &'life0 self, repo_path: RepoPath, tag_name: Option<&'life1 str>, ) -> Pin<Box<dyn Future<Output = Result<ReleaseInfo, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

获取Release信息

当不传入参数时,获取最新Release信息

§参数
  • repo_path - 仓库路径
  • tag_name - 标签名称
Source

fn list<'life0, 'async_trait>( &'life0 self, repo_path: RepoPath, ) -> Pin<Box<dyn Future<Output = Result<Vec<ReleaseInfo>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

获取Release列表

§参数
  • repo_path - 仓库路径
Source

fn update<'life0, 'life1, 'async_trait>( &'life0 self, repo_path: RepoPath, tag_name: &'life1 str, option: UpdateOption, ) -> Pin<Box<dyn Future<Output = Result<ReleaseInfo, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

更新Release

§参数
  • repo_path - 仓库路径
  • tag_name - 标签名称
  • option - 更新参数,参考UpdateOption

Implementors§