pub struct Plan {Show 14 fields
pub identity: Identity,
pub classification: Classification,
pub findings: Vec<Finding>,
pub style_candidates: Vec<StyleCandidate>,
pub desired_state: DesiredState,
pub observed_state: ObservedState,
pub release: ReleaseSource,
pub operations: Vec<Operation>,
pub preconditions: Vec<Precondition>,
pub decisions: Vec<Decision>,
pub postconditions: Vec<Postcondition>,
pub evidence: Vec<Evidence>,
pub readiness: Readiness,
pub input_fingerprint: Sha256,
}Expand description
The whole document.
Fields§
§identity: IdentityWhich plan this is.
classification: ClassificationWhat the target is.
findings: Vec<Finding>What the corpus shows.
style_candidates: Vec<StyleCandidate>Documents written before the instance, named and never judged.
desired_state: DesiredStateWhat the plan is aiming at.
observed_state: ObservedStateWhat the plan found.
release: ReleaseSourceWhere the release came from.
operations: Vec<Operation>Every write the apply will make, in apply order.
preconditions: Vec<Precondition>Everything that must hold first.
decisions: Vec<Decision>Everything the operator decides.
postconditions: Vec<Postcondition>Everything the apply proves at the end.
evidence: Vec<Evidence>What was observed, and how.
readiness: ReadinessWhether the plan may be applied.
input_fingerprint: Sha256The digest over the semantic inputs an approval binds to.
Implementations§
Source§impl Plan
impl Plan
Sourcepub fn findings_of(&self, kind: FindingKind) -> Vec<&Finding>
pub fn findings_of(&self, kind: FindingKind) -> Vec<&Finding>
Every finding of one kind.
Sourcepub fn structural_count(&self) -> usize
pub fn structural_count(&self) -> usize
How many structural findings the corpus shows.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Plan
impl<'de> Deserialize<'de> for Plan
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
impl Eq for Plan
impl StructuralPartialEq for Plan
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.