Skip to main content

BranchProtectionOpsExt

Trait BranchProtectionOpsExt 

Source
pub trait BranchProtectionOpsExt {
    // Required methods
    fn create_branch_protection<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        owner: &'life1 str,
        repo: &'life2 str,
        branch: &'life3 str,
        protection_data: &'life4 CreateBranchProtectionRequest,
    ) -> Pin<Box<dyn Future<Output = Result<GitHubBranchProtection>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
    fn update_branch_protection<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        owner: &'life1 str,
        repo: &'life2 str,
        branch: &'life3 str,
        protection_data: &'life4 CreateBranchProtectionRequest,
    ) -> Pin<Box<dyn Future<Output = Result<GitHubBranchProtection>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
    fn delete_branch_protection<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        owner: &'life1 str,
        repo: &'life2 str,
        branch: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}

Required Methods§

Source

fn create_branch_protection<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, owner: &'life1 str, repo: &'life2 str, branch: &'life3 str, protection_data: &'life4 CreateBranchProtectionRequest, ) -> Pin<Box<dyn Future<Output = Result<GitHubBranchProtection>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source

fn update_branch_protection<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, owner: &'life1 str, repo: &'life2 str, branch: &'life3 str, protection_data: &'life4 CreateBranchProtectionRequest, ) -> Pin<Box<dyn Future<Output = Result<GitHubBranchProtection>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source

fn delete_branch_protection<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, owner: &'life1 str, repo: &'life2 str, branch: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementations on Foreign Types§

Source§

impl BranchProtectionOpsExt for Octocrab

Source§

fn create_branch_protection<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, owner: &'life1 str, repo: &'life2 str, branch: &'life3 str, protection_data: &'life4 CreateBranchProtectionRequest, ) -> Pin<Box<dyn Future<Output = Result<GitHubBranchProtection>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source§

fn update_branch_protection<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, owner: &'life1 str, repo: &'life2 str, branch: &'life3 str, protection_data: &'life4 CreateBranchProtectionRequest, ) -> Pin<Box<dyn Future<Output = Result<GitHubBranchProtection>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source§

fn delete_branch_protection<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, owner: &'life1 str, repo: &'life2 str, branch: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementors§