pub enum ApprovalMode {
Ask(Box<dyn ApprovalHandler>),
AssumeYes,
Deny,
}Expand description
What the runtime should do when it reaches an approval node.
Variants§
Ask(Box<dyn ApprovalHandler>)
Ask the handler.
AssumeYes
Approve without asking. Requires an explicit opt-in from the operator, because the artifact asked for a human.
Deny
Refuse every gate. The safe default for unattended runs.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ApprovalMode
impl !Send for ApprovalMode
impl !Sync for ApprovalMode
impl !UnwindSafe for ApprovalMode
impl Freeze for ApprovalMode
impl Unpin for ApprovalMode
impl UnsafeUnpin for ApprovalMode
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