pub struct HookOutcome {
pub blocked: bool,
pub block_reason: String,
pub results: Vec<HookResult>,
pub additional_context: Option<String>,
pub updated_input: Option<Value>,
pub permission_decision: Option<String>,
pub decision: Option<String>,
}Expand description
Aggregated outcome from running all hooks for an event.
Fields§
§blocked: boolWhether any hook requested blocking the operation.
block_reason: StringHuman-readable reason for the block.
results: Vec<HookResult>Individual results from each hook command.
additional_context: Option<String>Additional context injected by a hook (appended to tool output).
updated_input: Option<Value>Updated input provided by a hook (replaces tool input).
permission_decision: Option<String>Permission decision from a hook (e.g., “allow”, “deny”).
decision: Option<String>General decision string from a hook.
Implementations§
Trait Implementations§
Source§impl Clone for HookOutcome
impl Clone for HookOutcome
Source§fn clone(&self) -> HookOutcome
fn clone(&self) -> HookOutcome
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 moreSource§impl Debug for HookOutcome
impl Debug for HookOutcome
Source§impl Default for HookOutcome
impl Default for HookOutcome
Source§fn default() -> HookOutcome
fn default() -> HookOutcome
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HookOutcome
impl RefUnwindSafe for HookOutcome
impl Send for HookOutcome
impl Sync for HookOutcome
impl Unpin for HookOutcome
impl UnsafeUnpin for HookOutcome
impl UnwindSafe for HookOutcome
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