Skip to main content

IssuesProvider

Trait IssuesProvider 

Source
pub trait IssuesProvider: Send + Sync {
    // Required methods
    fn issue<'life0, 'life1, 'async_trait>(
        &'life0 self,
        repository: &'life1 Repository,
        number: IssueNumber,
    ) -> Pin<Box<dyn Future<Output = Result<Issue>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn labels<'life0, 'life1, 'async_trait>(
        &'life0 self,
        repository: &'life1 Repository,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Label>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn upsert_label<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        repository: &'life1 Repository,
        label: &'life2 Label,
    ) -> Pin<Box<dyn Future<Output = Result<Label>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn issue<'life0, 'life1, 'async_trait>( &'life0 self, repository: &'life1 Repository, number: IssueNumber, ) -> Pin<Box<dyn Future<Output = Result<Issue>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn labels<'life0, 'life1, 'async_trait>( &'life0 self, repository: &'life1 Repository, ) -> Pin<Box<dyn Future<Output = Result<Vec<Label>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn upsert_label<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, repository: &'life1 Repository, label: &'life2 Label, ) -> Pin<Box<dyn Future<Output = Result<Label>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§