pub enum AutoApprovalRecommendation {
Approve,
RequireApproval,
Excluded,
Error,
Unknown,
}Expand description
Outcome of the auto-approval safety judge for a permission request. Present only when auto mode is enabled; its absence means the judge did not evaluate the request (auto mode was off).
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Variants§
Approve
The judge evaluated the request and recommends automatically approving it.
RequireApproval
The judge evaluated the request and does not recommend auto-approving it; explicit approval is required. Whether that means prompting, denying, or something else is the consumer’s decision.
Excluded
Auto mode is enabled, but this request category is never auto-approvable (for example, sandbox-bypass requests), so the judge was not consulted.
Error
The judge was consulted but did not return a usable recommendation, so the request requires explicit approval.
Unknown
Unknown variant for forward compatibility.
Trait Implementations§
Source§impl Clone for AutoApprovalRecommendation
impl Clone for AutoApprovalRecommendation
Source§fn clone(&self) -> AutoApprovalRecommendation
fn clone(&self) -> AutoApprovalRecommendation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AutoApprovalRecommendation
impl Debug for AutoApprovalRecommendation
Source§impl Default for AutoApprovalRecommendation
impl Default for AutoApprovalRecommendation
Source§fn default() -> AutoApprovalRecommendation
fn default() -> AutoApprovalRecommendation
Source§impl<'de> Deserialize<'de> for AutoApprovalRecommendation
impl<'de> Deserialize<'de> for AutoApprovalRecommendation
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>,
impl Eq for AutoApprovalRecommendation
Source§impl PartialEq for AutoApprovalRecommendation
impl PartialEq for AutoApprovalRecommendation
Source§fn eq(&self, other: &AutoApprovalRecommendation) -> bool
fn eq(&self, other: &AutoApprovalRecommendation) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AutoApprovalRecommendation
Auto Trait Implementations§
impl Freeze for AutoApprovalRecommendation
impl RefUnwindSafe for AutoApprovalRecommendation
impl Send for AutoApprovalRecommendation
impl Sync for AutoApprovalRecommendation
impl Unpin for AutoApprovalRecommendation
impl UnsafeUnpin for AutoApprovalRecommendation
impl UnwindSafe for AutoApprovalRecommendation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.