pub struct ExecutionState {
pub params: HashMap<ParamId, Value>,
pub roles: HashMap<RoleId, String>,
pub materials: HashMap<MaterialId, String>,
pub dry_run: bool,
pub artifacts: HashMap<ArtifactId, ArtifactValue>,
}Expand description
Complete execution state, recreated after each step.
This struct owns all state that evolves during ceremony execution.
Rather than mutating fields, new state is created via
ExecutionState::with_material (for materials loaded up front) and
via the executor’s internal fold (for step results).
Fields§
§params: HashMap<ParamId, Value>Resolved parameters (from ceremony defaults, CLI flags, or env vars).
roles: HashMap<RoleId, String>Role ID → display name mapping.
materials: HashMap<MaterialId, String>Material ID → display name mapping (for showing material titles).
dry_run: boolWhether this is a dry run.
artifacts: HashMap<ArtifactId, ArtifactValue>Artifacts produced by completed steps and loaded materials.
Implementations§
Source§impl ExecutionState
impl ExecutionState
Sourcepub fn new(
params: HashMap<ParamId, Value>,
roles: HashMap<RoleId, String>,
materials: HashMap<MaterialId, String>,
dry_run: bool,
) -> Self
pub fn new( params: HashMap<ParamId, Value>, roles: HashMap<RoleId, String>, materials: HashMap<MaterialId, String>, dry_run: bool, ) -> Self
Create initial execution state.
Sourcepub fn handler_context(&self) -> HandlerContext<'_>
pub fn handler_context(&self) -> HandlerContext<'_>
Create a read-only view for handlers.
Sourcepub fn with_material(self, id: ArtifactId, artifact: ArtifactValue) -> Self
pub fn with_material(self, id: ArtifactId, artifact: ArtifactValue) -> Self
Add a material artifact.
Sourcepub fn resolve_role(&self, role_id: &RoleId) -> String
pub fn resolve_role(&self, role_id: &RoleId) -> String
Resolve a role ID to a display name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecutionState
impl RefUnwindSafe for ExecutionState
impl Send for ExecutionState
impl Sync for ExecutionState
impl Unpin for ExecutionState
impl UnsafeUnpin for ExecutionState
impl UnwindSafe for ExecutionState
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