pub enum ApprovalsReviewer {
User,
AutoReview,
GuardianSubagent,
}Expand description
Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to user. auto_review uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value guardian_subagent is accepted for compatibility.
JSON schema
{
"description": "Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to `user`. `auto_review` uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value `guardian_subagent` is accepted for compatibility.",
"type": "string",
"enum": [
"user",
"auto_review",
"guardian_subagent"
]
}Variants§
Trait Implementations§
Source§impl Clone for ApprovalsReviewer
impl Clone for ApprovalsReviewer
Source§fn clone(&self) -> ApprovalsReviewer
fn clone(&self) -> ApprovalsReviewer
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 ApprovalsReviewer
impl Debug for ApprovalsReviewer
Source§impl<'de> Deserialize<'de> for ApprovalsReviewer
impl<'de> Deserialize<'de> for ApprovalsReviewer
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 Display for ApprovalsReviewer
impl Display for ApprovalsReviewer
Source§impl FromStr for ApprovalsReviewer
impl FromStr for ApprovalsReviewer
Source§impl Hash for ApprovalsReviewer
impl Hash for ApprovalsReviewer
Source§impl Ord for ApprovalsReviewer
impl Ord for ApprovalsReviewer
Source§fn cmp(&self, other: &ApprovalsReviewer) -> Ordering
fn cmp(&self, other: &ApprovalsReviewer) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ApprovalsReviewer
impl PartialEq for ApprovalsReviewer
Source§fn eq(&self, other: &ApprovalsReviewer) -> bool
fn eq(&self, other: &ApprovalsReviewer) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ApprovalsReviewer
impl PartialOrd for ApprovalsReviewer
Source§impl Serialize for ApprovalsReviewer
impl Serialize for ApprovalsReviewer
Source§impl TryFrom<&String> for ApprovalsReviewer
impl TryFrom<&String> for ApprovalsReviewer
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for ApprovalsReviewer
impl TryFrom<&str> for ApprovalsReviewer
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for ApprovalsReviewer
impl TryFrom<String> for ApprovalsReviewer
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for ApprovalsReviewer
impl Eq for ApprovalsReviewer
impl StructuralPartialEq for ApprovalsReviewer
Auto Trait Implementations§
impl Freeze for ApprovalsReviewer
impl RefUnwindSafe for ApprovalsReviewer
impl Send for ApprovalsReviewer
impl Sync for ApprovalsReviewer
impl Unpin for ApprovalsReviewer
impl UnsafeUnpin for ApprovalsReviewer
impl UnwindSafe for ApprovalsReviewer
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.