pub enum HostFallbackReason {
ModelDenied(PermissionAdmissionReview),
ReviewFailed {
message: String,
},
ReviewModelUnavailable,
}Expand description
Why a permission request reached the host after AI review was attempted.
Under PermissionReviewMode::ModelThenHostFallback the host is asked
only after the AI review step; this records what that step produced so a
host prompt can distinguish an AI denial from AI review being unavailable.
Variants§
ModelDenied(PermissionAdmissionReview)
The AI reviewer denied the request, or approved it without enough confidence to admit it. The original review metadata is retained.
ReviewFailed
AI review ran but could not produce a decision.
No approval-review model is configured, so AI review was skipped.
Implementations§
Source§impl HostFallbackReason
impl HostFallbackReason
Sourcepub const fn model_review(&self) -> Option<&PermissionAdmissionReview>
pub const fn model_review(&self) -> Option<&PermissionAdmissionReview>
Returns the AI review behind a HostFallbackReason::ModelDenied.
Trait Implementations§
Source§impl Clone for HostFallbackReason
impl Clone for HostFallbackReason
Source§impl Debug for HostFallbackReason
impl Debug for HostFallbackReason
Source§impl Display for HostFallbackReason
impl Display for HostFallbackReason
impl Eq for HostFallbackReason
Source§impl PartialEq for HostFallbackReason
impl PartialEq for HostFallbackReason
impl StructuralPartialEq for HostFallbackReason
Auto Trait Implementations§
impl Forget for HostFallbackReason
impl Freeze for HostFallbackReason
impl Move for HostFallbackReason
impl RefUnwindSafe for HostFallbackReason
impl Send for HostFallbackReason
impl Sync for HostFallbackReason
impl Unpin for HostFallbackReason
impl UnsafeUnpin for HostFallbackReason
impl UnwindSafe for HostFallbackReason
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
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,
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.