pub struct TransitionBuilder<'a> { /* private fields */ }Expand description
Builder for validated state transitions.
Implementations§
Source§impl<'a> TransitionBuilder<'a>
impl<'a> TransitionBuilder<'a>
Sourcepub fn require_clean_tree(self) -> Self
pub fn require_clean_tree(self) -> Self
Require worktree to be clean (no uncommitted changes).
Sourcepub fn require_dependencies_met(self) -> Self
pub fn require_dependencies_met(self) -> Self
Require all dependencies to be met.
Sourcepub fn require_all_criteria_checked(self) -> Self
pub fn require_all_criteria_checked(self) -> Self
Require all acceptance criteria to be checked.
Sourcepub fn require_commits_exist(self) -> Self
pub fn require_commits_exist(self) -> Self
Require at least one commit for the spec.
Sourcepub fn require_no_incomplete_members(self) -> Self
pub fn require_no_incomplete_members(self) -> Self
Require no incomplete driver members.
Sourcepub fn check_approval(self) -> Self
pub fn check_approval(self) -> Self
Check approval status.
Sourcepub fn force(self) -> Self
pub fn force(self) -> Self
Force the transition, bypassing all precondition checks. Use with extreme caution - intended for exceptional cases only.
Sourcepub fn with_project_name(self, project_name: Option<&str>) -> Self
pub fn with_project_name(self, project_name: Option<&str>) -> Self
Set the project name for worktree path resolution.
Sourcepub fn with_specs_dir(self, specs_dir: &Path) -> Self
pub fn with_specs_dir(self, specs_dir: &Path) -> Self
Set the specs directory path (overrides default .chant/specs).
Sourcepub fn to(self, target: SpecStatus) -> Result<(), TransitionError>
pub fn to(self, target: SpecStatus) -> Result<(), TransitionError>
Execute the transition to the target status.
Auto Trait Implementations§
impl<'a> Freeze for TransitionBuilder<'a>
impl<'a> RefUnwindSafe for TransitionBuilder<'a>
impl<'a> Send for TransitionBuilder<'a>
impl<'a> Sync for TransitionBuilder<'a>
impl<'a> Unpin for TransitionBuilder<'a>
impl<'a> !UnwindSafe for TransitionBuilder<'a>
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