pub enum GateAction {
Advance,
LoopBack(Stage),
Abort(String),
}Expand description
What DevFlow should do after reading a GateResponse.
Variants§
Advance
Approved — advance to the next stage.
LoopBack(Stage)
Rejected with fixable feedback — loop back to the given stage.
Abort(String)
Rejected and aborted — stop the workflow with a reason.
Implementations§
Source§impl GateAction
impl GateAction
Sourcepub fn from_response(response: &GateResponse) -> GateAction
pub fn from_response(response: &GateResponse) -> GateAction
Decide the action from a response: approval advances, a rejection loops back to Code unless the note asks to abort.
Trait Implementations§
Source§impl Clone for GateAction
impl Clone for GateAction
Source§fn clone(&self) -> GateAction
fn clone(&self) -> GateAction
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 GateAction
impl Debug for GateAction
impl Eq for GateAction
Source§impl PartialEq for GateAction
impl PartialEq for GateAction
impl StructuralPartialEq for GateAction
Auto Trait Implementations§
impl Freeze for GateAction
impl RefUnwindSafe for GateAction
impl Send for GateAction
impl Sync for GateAction
impl Unpin for GateAction
impl UnsafeUnpin for GateAction
impl UnwindSafe for GateAction
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