Skip to main content

Provider

Trait Provider 

Source
pub trait Provider:
    IssueProvider
    + MergeRequestProvider
    + PipelineProvider {
    // Required method
    fn get_current_user<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<User>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Combined provider trait for services that support issues, merge requests, and pipelines.

This is implemented by GitLab and GitHub providers.

Required Methods§

Source

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

Get the current authenticated user.

Implementors§