pub enum AssistedApprovalRecommendation {
Approve,
RequireApproval,
Excluded,
Error,
Unknown,
}Expand description
Outcome of the assisted-approval safety judge for a permission request. Present only in assisted mode; its absence means the judge did not evaluate the request.
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 automatically approving it; explicit approval is required. Whether that means prompting, denying, or something else is the consumer’s decision.
Excluded
Assisted mode is enabled, but this request category is never automatically 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 AssistedApprovalRecommendation
impl Clone for AssistedApprovalRecommendation
Source§fn clone(&self) -> AssistedApprovalRecommendation
fn clone(&self) -> AssistedApprovalRecommendation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for AssistedApprovalRecommendation
impl Default for AssistedApprovalRecommendation
Source§fn default() -> AssistedApprovalRecommendation
fn default() -> AssistedApprovalRecommendation
Source§impl<'de> Deserialize<'de> for AssistedApprovalRecommendation
impl<'de> Deserialize<'de> for AssistedApprovalRecommendation
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 AssistedApprovalRecommendation
impl StructuralPartialEq for AssistedApprovalRecommendation
Auto Trait Implementations§
impl Freeze for AssistedApprovalRecommendation
impl RefUnwindSafe for AssistedApprovalRecommendation
impl Send for AssistedApprovalRecommendation
impl Sync for AssistedApprovalRecommendation
impl Unpin for AssistedApprovalRecommendation
impl UnsafeUnpin for AssistedApprovalRecommendation
impl UnwindSafe for AssistedApprovalRecommendation
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.