JobService

Trait JobService 

Source
pub trait JobService {
    // Required methods
    fn get_job_report(
        &self,
        auth_: BearerToken,
        job_rid: JobRid,
    ) -> Result<JobReport, Error>;
    fn batch_get_job_reports(
        &self,
        auth_: BearerToken,
        request: BatchGetJobReportsRequest,
    ) -> Result<BatchGetJobReportsResponse, Error>;
}
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, ) -> Result<JobReport, Error>

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, ) -> Result<BatchGetJobReportsResponse, Error>

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

Implementors§