pub enum ApprovalKind {
Spawn,
ToolUse,
BudgetIncrease,
Custom(String),
}Expand description
The category of action that triggered an approval request.
Used as an optional filter key in team routing configuration so different action types can be routed to different approver lists within the same team.
Variants§
Spawn
An agent attempted to spawn a child agent.
ToolUse
An agent invoked a tool that requires approval.
BudgetIncrease
An agent requested a budget increase.
Custom(String)
A caller-defined approval category.
Implementations§
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 moreSource§impl Debug for ApprovalKind
impl Debug for ApprovalKind
Source§impl Display for ApprovalKind
impl Display for ApprovalKind
impl Eq for ApprovalKind
Source§impl FromStr for ApprovalKind
impl FromStr for ApprovalKind
Source§impl Hash for ApprovalKind
impl Hash for ApprovalKind
Source§impl PartialEq for ApprovalKind
impl PartialEq for ApprovalKind
Source§fn eq(&self, other: &ApprovalKind) -> bool
fn eq(&self, other: &ApprovalKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApprovalKind
Auto Trait Implementations§
impl Freeze 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.