pub trait GitlabClient: Send + Sync {
    // Required methods
    fn publish_package_file<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: PublishPackageFileRequestView<'life1, true>
    ) -> Pin<Box<dyn Future<Output = Result<GenericPackageFile, PublishPackageFileError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_package_file<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: GetPackageFileRequestView<'life1>
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, GetPackageFileError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn create_release<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: CreateReleaseRequestView<'life1, String>
    ) -> Pin<Box<dyn Future<Output = Result<Release, CreateReleaseError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_release<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: GetReleaseRequestView<'life1>
    ) -> Pin<Box<dyn Future<Output = Result<Release, GetReleaseError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn create_release_link<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: CreateReleaseLinkRequestView<'life1>
    ) -> Pin<Box<dyn Future<Output = Result<ReleaseLink, CreateReleaseLinkError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn publish_package_file<'life0, 'life1, 'async_trait>( &'life0 self, req: PublishPackageFileRequestView<'life1, true> ) -> Pin<Box<dyn Future<Output = Result<GenericPackageFile, PublishPackageFileError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn get_package_file<'life0, 'life1, 'async_trait>( &'life0 self, req: GetPackageFileRequestView<'life1> ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, GetPackageFileError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn create_release<'life0, 'life1, 'async_trait>( &'life0 self, req: CreateReleaseRequestView<'life1, String> ) -> Pin<Box<dyn Future<Output = Result<Release, CreateReleaseError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn get_release<'life0, 'life1, 'async_trait>( &'life0 self, req: GetReleaseRequestView<'life1> ) -> Pin<Box<dyn Future<Output = Result<Release, GetReleaseError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementations on Foreign Types§

source§

impl<'a, T: 'a + GitlabClient + ?Sized> GitlabClient for &'a T
where &'a T: Send + Sync,

source§

fn publish_package_file<'life0, 'life1, 'async_trait>( &'life0 self, req: PublishPackageFileRequestView<'life1, true> ) -> Pin<Box<dyn Future<Output = Result<GenericPackageFile, PublishPackageFileError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn get_package_file<'life0, 'life1, 'async_trait>( &'life0 self, req: GetPackageFileRequestView<'life1> ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, GetPackageFileError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn create_release<'life0, 'life1, 'async_trait>( &'life0 self, req: CreateReleaseRequestView<'life1, String> ) -> Pin<Box<dyn Future<Output = Result<Release, CreateReleaseError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn get_release<'life0, 'life1, 'async_trait>( &'life0 self, req: GetReleaseRequestView<'life1> ) -> Pin<Box<dyn Future<Output = Result<Release, GetReleaseError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl<T: GitlabClient + ?Sized> GitlabClient for Arc<T>
where Arc<T>: Send + Sync,

source§

fn publish_package_file<'life0, 'life1, 'async_trait>( &'life0 self, req: PublishPackageFileRequestView<'life1, true> ) -> Pin<Box<dyn Future<Output = Result<GenericPackageFile, PublishPackageFileError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn get_package_file<'life0, 'life1, 'async_trait>( &'life0 self, req: GetPackageFileRequestView<'life1> ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, GetPackageFileError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn create_release<'life0, 'life1, 'async_trait>( &'life0 self, req: CreateReleaseRequestView<'life1, String> ) -> Pin<Box<dyn Future<Output = Result<Release, CreateReleaseError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn get_release<'life0, 'life1, 'async_trait>( &'life0 self, req: GetReleaseRequestView<'life1> ) -> Pin<Box<dyn Future<Output = Result<Release, GetReleaseError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§