pub struct Decision {
pub id: String,
pub blocked_by: Vec<String>,
pub missing_dependencies: Vec<String>,
pub reason: Option<String>,
pub recovery: Option<Recovery>,
pub question: Option<String>,
pub choices: Vec<String>,
pub actions: BTreeMap<String, ChoiceAction>,
pub question_decision: Option<QuestionDecision>,
pub evidence: Vec<String>,
}Expand description
The conductor’s decision for one task. Deliberately has no priority
field: see this module’s doc.
Fields§
§id: StringTask id, expected to be copied verbatim from what it was shown.
blocked_by: Vec<String>Ids this task should be blocked on. Meaningful only for a runnable
(queued) task, or a machine-held task whose missing-only decision
is unconfirmed against the queue. Ignored otherwise.
missing_dependencies: Vec<String>Dependencies claimed missing as the sole reason for this question or
hold. Must name references in blocked_by. Empty (including legacy
replies) means the question/hold may have an independent purpose and
must be preserved. Never set for decisions needing separate consent.
reason: Option<String>One line explaining the block or the recovery.
recovery: Option<Recovery>Recovery for a stalled or finished task. For a runnable (queued)
one, only Recovery::Hold has any effect. An independent hold takes
precedence over blocked_by, so dependency completion cannot release it.
Use a hold when the operator already said the task must not compete,
rather than asking a question that restates that answer. Requeue, Review,
and Done have no meaning for a task that is already in line.
question: Option<String>A question for the operator. When present, apply files it (unless
one is already open for this task) and blocks the task on its id
instead of acting on blocked_by or recovery. Only a missing-only
decision explicitly marked by Self::missing_dependencies may be
replaced with dependency waiting unless the queue confirms missing blockers.
choices: Vec<String>Fixed answers for question, if it has any. Empty means free text.
actions: BTreeMap<String, ChoiceAction>Explicit operations keyed by exact choice labels; never inferred from prose.
question_decision: Option<QuestionDecision>Stable operation and concrete target of a question. Missing on legacy decisions: those share the task’s existing cause, regardless of prose.
evidence: Vec<String>Task or question ids carrying independently verifiable new blocking evidence.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Decision
impl<'de> Deserialize<'de> for Decision
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>,
Auto Trait Implementations§
impl Forget for Decision
impl Freeze for Decisionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, ChoiceAction> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, ChoiceAction)>>: Freeze,
impl Move for Decision
impl RefUnwindSafe for Decision
impl Send for Decisionwhere
RawVecInner: Send,
NodeRef<Owned, String, ChoiceAction, LeafOrInternal>: Send,
BoxRaw<(String, ChoiceAction)>: Send,
impl Sync for Decisionwhere
RawVecInner: Sync,
NodeRef<Owned, String, ChoiceAction, LeafOrInternal>: Sync,
BoxRaw<(String, ChoiceAction)>: Sync,
impl Unpin for Decision
impl UnsafeUnpin for Decisionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, ChoiceAction> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, ChoiceAction)>>: UnsafeUnpin,
impl UnwindSafe for Decision
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
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>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more