pub enum CommandExecutionApprovalDecision {
Accept,
AcceptForSession,
AcceptWithExecpolicyAmendment(CommandExecutionApprovalDecisionAcceptWithExecpolicyAmendment),
ApplyNetworkPolicyAmendment(CommandExecutionApprovalDecisionApplyNetworkPolicyAmendment),
Decline,
Cancel,
Unknown(Value),
}Variants§
Accept
User approved the command.
AcceptForSession
User approved the command and future prompts in the same session-scoped approval cache should run without prompting.
AcceptWithExecpolicyAmendment(CommandExecutionApprovalDecisionAcceptWithExecpolicyAmendment)
User approved the command, and wants to apply the proposed execpolicy amendment so future matching commands can run without prompting.
ApplyNetworkPolicyAmendment(CommandExecutionApprovalDecisionApplyNetworkPolicyAmendment)
User chose a persistent network policy rule (allow/deny) for this host.
Decline
User denied the command. The agent will continue the turn.
Cancel
User denied the command. The turn will also be immediately interrupted.
Unknown(Value)
A value this Codex version doesn’t know, or a known one whose body didn’t decode.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CommandExecutionApprovalDecision
impl<'de> Deserialize<'de> for CommandExecutionApprovalDecision
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
impl StructuralPartialEq for CommandExecutionApprovalDecision
Auto Trait Implementations§
impl Forget for CommandExecutionApprovalDecision
impl Freeze for CommandExecutionApprovalDecision
impl RefUnwindSafe for CommandExecutionApprovalDecision
impl Send for CommandExecutionApprovalDecision
impl Sync for CommandExecutionApprovalDecision
impl Unpin for CommandExecutionApprovalDecision
impl UnsafeUnpin for CommandExecutionApprovalDecision
impl UnwindSafe for CommandExecutionApprovalDecision
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