enum HookDecisionKind {
Allow {
updated_input: Option<Value>,
},
Deny {
reason: String,
},
Passthrough,
Defer {
timeout_ms: Option<u64>,
},
}Variants§
Allow
Deny
Passthrough
No-op - purely observational; continue unchanged.
Defer
Deferred-execution ACK - ships the CLI’s AsyncHookJSONOutput
shape ({"async": true, "asyncTimeout": <ms>}) so the CLI
knows not to wait on the hook’s in-line response. The caller
is expected to deliver the real result out-of-band. Wiring
the out-of-band return path is follow-up work; forge-sdk
currently only emits the ACK.
Trait Implementations§
Source§impl Clone for HookDecisionKind
impl Clone for HookDecisionKind
Auto Trait Implementations§
impl Freeze for HookDecisionKind
impl RefUnwindSafe for HookDecisionKind
impl Send for HookDecisionKind
impl Sync for HookDecisionKind
impl Unpin for HookDecisionKind
impl UnsafeUnpin for HookDecisionKind
impl UnwindSafe for HookDecisionKind
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