pub struct Precondition {
pub id: String,
pub requirement: Requirement,
pub evaluation: Evaluation,
pub decision: Option<String>,
pub evidence_refs: Vec<String>,
}Expand description
One precondition of a plan: a stable id, what it requires, what it was found to be, and the decision that resolves it where one does.
Fields§
§id: StringA stable id, the same across re-plans of the same target.
requirement: RequirementThe policy on this precondition.
evaluation: EvaluationWhat was found.
decision: Option<String>The decision whose selected answer satisfies this precondition, where the requirement is decision-required.
evidence_refs: Vec<String>The evidence this evaluation rests on.
Trait Implementations§
Source§impl Clone for Precondition
impl Clone for Precondition
Source§fn clone(&self) -> Precondition
fn clone(&self) -> Precondition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Precondition
impl Debug for Precondition
Auto Trait Implementations§
impl Freeze for Precondition
impl RefUnwindSafe for Precondition
impl Send for Precondition
impl Sync for Precondition
impl Unpin for Precondition
impl UnsafeUnpin for Precondition
impl UnwindSafe for Precondition
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