#[non_exhaustive]pub struct PlannedTurn {
pub views: Vec<ErasedWorkflowView>,
pub understanding: Option<Understanding>,
pub tasks: Vec<TaskRecord>,
pub target_resolutions: Vec<TargetResolutionRecord>,
pub reduction: ReductionPlan,
pub policy_decisions: Vec<PolicyDecision>,
pub would_persist: Vec<InteractionSpec>,
pub would_execute: Vec<CommandRef>,
pub would_claim: Vec<ClaimClass>,
}Expand description
What a turn would have done, stopped before its first effect.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.views: Vec<ErasedWorkflowView>The projections of the cases the turn addressed.
understanding: Option<Understanding>What the turn was understood to say; None for a click with no text.
tasks: Vec<TaskRecord>Every model task understanding ran.
target_resolutions: Vec<TargetResolutionRecord>How each act’s target resolved.
reduction: ReductionPlanThe reduction.
policy_decisions: Vec<PolicyDecision>The policy decision for every command.
would_persist: Vec<InteractionSpec>The cards the turn would write before anything runs.
would_execute: Vec<CommandRef>The commands it would execute now.
would_claim: Vec<ClaimClass>The claim classes its answer would be entitled to.
Implementations§
Source§impl PlannedTurn
impl PlannedTurn
Sourcepub fn summary(&self) -> TurnSummary
pub fn summary(&self) -> TurnSummary
The summary two paths are compared on.
Trait Implementations§
Source§impl Clone for PlannedTurn
impl Clone for PlannedTurn
Auto Trait Implementations§
impl Freeze for PlannedTurn
impl RefUnwindSafe for PlannedTurn
impl Send for PlannedTurn
impl Sync for PlannedTurn
impl Unpin for PlannedTurn
impl UnsafeUnpin for PlannedTurn
impl UnwindSafe for PlannedTurn
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