pub struct WorkContract {
pub objective: String,
pub acceptance: Vec<AcceptanceCriterion>,
pub instructions: Option<WorkInstructions>,
pub capabilities: BTreeSet<String>,
pub requirement_ids: BTreeSet<RequirementId>,
pub assets: Vec<AssetRequirement>,
pub condition: Option<WorkCondition>,
pub join: JoinPolicy,
}Expand description
The authored scope an executor must satisfy.
Fields§
§objective: StringObservable purpose of this work.
acceptance: Vec<AcceptanceCriterion>Evidence requirements for executable work.
instructions: Option<WorkInstructions>Optional ordered procedure and scope; absent in plans that do not supply instructions.
capabilities: BTreeSet<String>Capabilities required of a recommended worker.
requirement_ids: BTreeSet<RequirementId>Requirements implemented by this work.
assets: Vec<AssetRequirement>Explicit read/write needs; an empty set permits work without repository assets.
condition: Option<WorkCondition>Decision option this work and its descendants apply to; absent means unconditional.
join: JoinPolicyHow a task or milestone treats incoming constraints from work a choice excluded.
Trait Implementations§
Source§impl Clone for WorkContract
impl Clone for WorkContract
Source§impl Debug for WorkContract
impl Debug for WorkContract
Source§impl<'de> Deserialize<'de> for WorkContract
impl<'de> Deserialize<'de> for WorkContract
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WorkContract
impl PartialEq for WorkContract
Source§impl Serialize for WorkContract
impl Serialize for WorkContract
impl StructuralPartialEq for WorkContract
Auto Trait Implementations§
impl Freeze for WorkContract
impl RefUnwindSafe for WorkContract
impl Send for WorkContract
impl Sync for WorkContract
impl Unpin for WorkContract
impl UnsafeUnpin for WorkContract
impl UnwindSafe for WorkContract
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more