Skip to main content

BuildRestApi

Trait BuildRestApi 

Source
pub trait BuildRestApi {
    // Required methods
    fn get_builds<'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<Rebuild>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn submit_build_report<'life0, 'async_trait>(
        &'life0 self,
        request: RebuildReport,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_build<'life0, 'async_trait>(
        &'life0 self,
        id: i32,
    ) -> Pin<Box<dyn Future<Output = Result<Rebuild>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_build_log<'life0, 'async_trait>(
        &'life0 self,
        id: i32,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_build_artifacts<'life0, 'async_trait>(
        &'life0 self,
        id: i32,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<RebuildArtifact>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_build_artifact<'life0, 'async_trait>(
        &'life0 self,
        id: i32,
        artifact_id: i32,
    ) -> Pin<Box<dyn Future<Output = Result<RebuildArtifact>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_build_artifact_diffoscope<'life0, 'async_trait>(
        &'life0 self,
        id: i32,
        artifact_id: i32,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_build_artifact_attestation<'life0, 'async_trait>(
        &'life0 self,
        id: i32,
        artifact_id: i32,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get_builds<'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<Rebuild>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Implementors§