pub enum FallbackAction {
Block,
PickAlternative {
action: String,
},
LowestRiskAlternative,
KeepCurrentState,
DelegateTo {
policy_path: String,
},
}Expand description
What the agent should do while a change is awaiting approval.
Variants§
Block
Do nothing; wait for approval.
PickAlternative
Run the named alternative action.
LowestRiskAlternative
Pick the lowest-risk option from ChangeProposal::alternatives.
KeepCurrentState
Leave current state unchanged; record the preferred option as a pending upgrade.
DelegateTo
Delegate to another policy by path.
Trait Implementations§
Source§impl Clone for FallbackAction
impl Clone for FallbackAction
Source§impl Debug for FallbackAction
impl Debug for FallbackAction
Source§impl<'de> Deserialize<'de> for FallbackAction
impl<'de> Deserialize<'de> for FallbackAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FallbackAction
impl PartialEq for FallbackAction
Source§impl Serialize for FallbackAction
impl Serialize for FallbackAction
impl StructuralPartialEq for FallbackAction
Auto Trait Implementations§
impl Freeze for FallbackAction
impl RefUnwindSafe for FallbackAction
impl Send for FallbackAction
impl Sync for FallbackAction
impl Unpin for FallbackAction
impl UnsafeUnpin for FallbackAction
impl UnwindSafe for FallbackAction
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