pub struct ActionStages { /* private fields */ }Expand description
Resolver for ActionGraph side-effecting stages.
This resolver recognizes stage keys:
http_post:<url>exec:<program>|<arg>|...
Policy decisions are evaluated per stage key and may disable side effects under dry-run.
Implementations§
Source§impl ActionStages
impl ActionStages
Sourcepub fn new(
policy: Policy,
is_replay: bool,
dry_run: bool,
approval_token_present: bool,
replay: ReplayAccounting,
) -> Self
pub fn new( policy: Policy, is_replay: bool, dry_run: bool, approval_token_present: bool, replay: ReplayAccounting, ) -> Self
Construct a resolver for ActionGraph actions.
Sourcepub fn safe_defaults(env: Environment) -> Policy
pub fn safe_defaults(env: Environment) -> Policy
Convenience: create a policy bundle from safe defaults.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ActionStages
impl RefUnwindSafe for ActionStages
impl Send for ActionStages
impl Sync for ActionStages
impl Unpin for ActionStages
impl UnwindSafe for ActionStages
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