pub enum HitlVerdict {
Allow,
Deny {
reason: String,
},
Pending {
request: Box<ApprovalRequest>,
verdict: Verdict,
},
Approved {
token: Box<ApprovalToken>,
},
}Expand description
Outcome of running an approval guard against a tool call.
The pending + approved variants box their inner payloads so the
enum stays cheap to pass by value; large variants trip clippy’s
large_enum_variant lint.
Variants§
Allow
Guard passes – no approval required.
Deny
Guard denies without an approval path (e.g. fail-closed).
Pending
Approval is required. Kernel should persist the request and return a 202-style response to the caller.
Approved
Approval was supplied with the request and passed verification.
Fields
§
token: Box<ApprovalToken>Trait Implementations§
Source§impl Clone for HitlVerdict
impl Clone for HitlVerdict
Source§fn clone(&self) -> HitlVerdict
fn clone(&self) -> HitlVerdict
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HitlVerdict
impl RefUnwindSafe for HitlVerdict
impl Send for HitlVerdict
impl Sync for HitlVerdict
impl Unpin for HitlVerdict
impl UnsafeUnpin for HitlVerdict
impl UnwindSafe for HitlVerdict
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