pub struct PrescriptiveDeclaration {Show 13 fields
pub kind: PrescriptiveKind,
pub items: Vec<String>,
pub filled_by: Vec<String>,
pub reviewed_by: Vec<String>,
pub ordered_by: Option<String>,
pub frame: Option<String>,
pub need_text: Option<String>,
pub label: Option<String>,
pub file: PathBuf,
pub line: usize,
pub item_kind: String,
pub item_target: ItemTarget,
pub structural_fingerprint: String,
}Expand description
A prescriptive work-orchestration declaration discovered in source (ADR-033).
Covers all eight primitives. The kind field distinguishes them (and maps to
a WorkShape via PrescriptiveKind::shape); the rest are loosely-typed
optional captures shared across kinds for forward-compat (ADR-009), mirroring
RecurrentDeclaration. Scan is recall-tuned (ADR-010): every field is
optional here; per-kind required-field validation lives at the audit layer
(and at parse-time in the macros). All members are antigen-category
SubstrateAlignment+FunctionalCorrectness per ADR-024/ADR-028.
Fields§
§kind: PrescriptiveKindWhich prescriptive primitive was declared.
items: Vec<String>needs (panel) / rule_out (ddx) / priority_order (triage) — the
shape’s required list. Held as one field because exactly one of the three
is meaningful per kind; the audit reads it through the kind’s shape.
filled_by: Vec<String>who-refs that fill the work (panel/rx filled_by; refer to; biopsy
deep_investigation_by; ddx investigator; triage triaged_by).
reviewed_by: Vec<String>who-refs that review the work (panel/rx reviewed_by; ddx reviewer).
ordered_by: Option<String>who-ref that ordered the work (panel ordered_by).
frame: Option<String>The intrinsic temporal frame, if any (panel/rx due; refer response_due;
triage re_triage_due; culture runs_until; quarantine until). ISO-8601.
need_text: Option<String>The primary free-text content of the need (rx treatment; biopsy
request_text; ddx symptom; culture test_kind; quarantine reason).
label: Option<String>A secondary opaque label (rx diagnosis; biopsy location; quarantine
scope) — a v0.3 opaque label, not resolved (VOID-4b).
file: PathBufSource file path.
line: usizeLine number.
item_kind: StringItem kind that was annotated.
item_target: ItemTargetItem identity for structural cross-referencing.
structural_fingerprint: StringStructural digest of the annotated item AS SCANNED, computed by
antigen_fingerprint::structural_digest. The audit pins who-step
satisfaction to this fingerprint (NFA-21): an attestation that signed
against an older fingerprint is stale and does NOT count toward
fulfillment — the same freshness discipline immunity witnesses use
(mirrors Immunity::structural_fingerprint).
#[serde(default)] so reports serialized before this field deserialize
cleanly with an empty fingerprint (the audit falls back to the sidecar’s
stored value when empty, the same legacy path as the immunity audit).
Trait Implementations§
Source§impl Clone for PrescriptiveDeclaration
impl Clone for PrescriptiveDeclaration
Source§fn clone(&self) -> PrescriptiveDeclaration
fn clone(&self) -> PrescriptiveDeclaration
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more