pub struct DevTask {
pub issue: String,
pub declared: bool,
pub record: Option<String>,
pub declaration: DevTaskDeclaration,
pub position: DevTaskPosition,
pub execution: DevTaskExecution,
pub synchronisation: DevTaskSynchronisation,
pub readiness: ReadinessVerdict,
pub diagnostics: Vec<DevTaskDiagnostic>,
pub attestation: AttestationTally,
}Expand description
One issue as an executable development task: what was authored, where it sits, what has happened to it, where its external projection stands, and whether a worker may start it.
Fields§
§issue: StringThe issue id, as asked for.
declared: boolWhether the canonical model declares it. False is answered rather than refused, with
every canonical field unknown: a typo that read as “nothing has been authored” is
the one answer this must never give.
record: Option<String>Repository-relative path of the canonical record, when there is one.
declaration: DevTaskDeclarationWhat a person authored.
position: DevTaskPositionWhere the plan graph puts it.
execution: DevTaskExecutionWhat happened locally.
synchronisation: DevTaskSynchronisationWhere the external projection stands.
readiness: ReadinessVerdictWhether it can be worked on, and what is in the way.
diagnostics: Vec<DevTaskDiagnostic>Everything wrong with its records.
attestation: AttestationTallyHow much of the answer was authored and how much a machine worked out.
Implementations§
Source§impl DevTask
impl DevTask
Sourcepub fn build(model: &DevTaskModel<'_>, issue: &str) -> DevTask
pub fn build(model: &DevTaskModel<'_>, issue: &str) -> DevTask
Compose one development task out of derivations that already exist.
Pure: every input is a value the caller already has, and the only work done here is attesting each field and deriving the readiness. A repository is never touched.
Sourcepub fn is_consistent(&self) -> bool
pub fn is_consistent(&self) -> bool
Every attested field of this task, so a check can walk them without knowing the
shape. The invariant is the one AttestedText::is_consistent states.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DevTask
impl<'de> Deserialize<'de> for DevTask
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>,
impl Eq for DevTask
Source§impl JsonSchema for DevTask
impl JsonSchema for DevTask
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for DevTask
Auto Trait Implementations§
impl Freeze for DevTask
impl RefUnwindSafe for DevTask
impl Send for DevTask
impl Sync for DevTask
impl Unpin for DevTask
impl UnsafeUnpin for DevTask
impl UnwindSafe for DevTask
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.