Skip to main content

PackageRestApi

Trait PackageRestApi 

Source
pub trait PackageRestApi {
    // Required methods
    fn submit_package_report<'life0, 'life1, 'async_trait>(
        &'life0 self,
        report: &'life1 PackageReport,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_source_packages<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        page: Option<&'life1 Page>,
        origin_filter: Option<&'life2 OriginFilter>,
        source_identity_filter: Option<&'life3 SourceIdentityFilter>,
    ) -> Pin<Box<dyn Future<Output = Result<ResultPage<SourcePackage>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn get_source_package<'life0, 'async_trait>(
        &'life0 self,
        id: i32,
    ) -> Pin<Box<dyn Future<Output = Result<SourcePackage>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_binary_packages<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        page: Option<&'life1 Page>,
        origin_filter: Option<&'life2 OriginFilter>,
        binary_identity_filter: Option<&'life3 BinaryIdentityFilter>,
    ) -> Pin<Box<dyn Future<Output = Result<ResultPage<BinaryPackage>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn get_binary_package<'life0, 'async_trait>(
        &'life0 self,
        id: i32,
    ) -> Pin<Box<dyn Future<Output = Result<BinaryPackage>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

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

Source

fn get_source_packages<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, page: Option<&'life1 Page>, origin_filter: Option<&'life2 OriginFilter>, source_identity_filter: Option<&'life3 SourceIdentityFilter>, ) -> Pin<Box<dyn Future<Output = Result<ResultPage<SourcePackage>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

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

Source

fn get_binary_packages<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, page: Option<&'life1 Page>, origin_filter: Option<&'life2 OriginFilter>, binary_identity_filter: Option<&'life3 BinaryIdentityFilter>, ) -> Pin<Box<dyn Future<Output = Result<ResultPage<BinaryPackage>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

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

Implementors§