WorkPackage

Type Alias WorkPackage 

Source
pub type WorkPackage = WrappedWorkPackage<NoWrap>;
Expand description

A work-package, a collection of work-items together with authorization and contextual information. This is processed in-core with Is-Authorized and Refine logic to produce a work-report.

Aliased Type§

pub struct WorkPackage {
    pub authorization: Authorization,
    pub auth_code_host: u32,
    pub authorizer: Authorizer,
    pub context: RefineContext,
    pub items: BoundedVec<WorkItem, MaxWorkItems>,
}

Fields§

§authorization: Authorization

Authorization token.

§auth_code_host: u32

Service identifier.

§authorizer: Authorizer

Authorizer.

§context: RefineContext

Refinement context.

§items: BoundedVec<WorkItem, MaxWorkItems>

Sequence of work items.