pub enum ApprovalKind {
Command,
CommandOnce,
GoalConfirmation,
AutopilotConfirmation,
Handoff,
}Expand description
Distinguishes different kinds of approval requests so channels can render appropriate buttons (e.g., Allow Once / Deny for commands vs Confirm / Cancel for scheduled-goal confirmations).
Variants§
Command
Standard command approval (Allow Once / Allow Session / Allow Always / Deny).
CommandOnce
Point-of-action approval that can authorize only this invocation. Channels must not offer session or persistent approval buttons.
GoalConfirmation
Scheduled-goal confirmation (Confirm / Cancel).
AutopilotConfirmation
Exact owner confirmation for a persisted Autopilot mandate policy. Kept distinct so channels never infer high-autonomy presentation from user or model prose.
Handoff
The agent asks the owner to do something themselves on a live surface (sign in, enter a code): Done or Not now, this one time only.
Trait Implementations§
Source§impl Clone for ApprovalKind
impl Clone for ApprovalKind
Source§fn clone(&self) -> ApprovalKind
fn clone(&self) -> ApprovalKind
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 moreimpl Copy for ApprovalKind
Source§impl Debug for ApprovalKind
impl Debug for ApprovalKind
Source§impl Default for ApprovalKind
impl Default for ApprovalKind
Source§fn default() -> ApprovalKind
fn default() -> ApprovalKind
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for ApprovalKind
impl Freeze for ApprovalKind
impl Move for ApprovalKind
impl RefUnwindSafe for ApprovalKind
impl Send for ApprovalKind
impl Sync for ApprovalKind
impl Unpin for ApprovalKind
impl UnsafeUnpin for ApprovalKind
impl UnwindSafe for ApprovalKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more