AsyncJobService

Trait AsyncJobService 

Source
pub trait AsyncJobService {
    // Required methods
    fn get_job_report(
        &self,
        auth_: BearerToken,
        job_rid: JobRid,
    ) -> impl Future<Output = Result<JobReport, Error>> + Send;
    fn batch_get_job_reports(
        &self,
        auth_: BearerToken,
        request: BatchGetJobReportsRequest,
    ) -> impl Future<Output = Result<BatchGetJobReportsResponse, Error>> + Send;
}
Expand description

The Job Service is responsible for returning information about jobs for checklist executions.

Required Methods§

Source

fn get_job_report( &self, auth_: BearerToken, job_rid: JobRid, ) -> impl Future<Output = Result<JobReport, Error>> + Send

Fetches the job report for a job RID. Throws ResourcesNotFound if no job exists with this job RID.

Source

fn batch_get_job_reports( &self, auth_: BearerToken, request: BatchGetJobReportsRequest, ) -> impl Future<Output = Result<BatchGetJobReportsResponse, Error>> + Send

Fetches the job reports for a set of job RIDs. Omits any job reports the user is not permitted to see from the response.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§