pub struct BeforePermission {
pub tool: String,
pub decision: String,
pub resolved: Option<bool>,
}Expand description
before Permission: invoked before requesting user authorization. Currently only
stubs observe — the resolved fallback is not yet wired (policy remains the authority
for allow/deny). Stub is in place for future use.
Fields§
§tool: String§decision: StringThe current policy decision ("allow", "deny", or "ask").
resolved: Option<bool>Resolved result; not currently consumed.
Trait Implementations§
Source§impl Clone for BeforePermission
impl Clone for BeforePermission
Source§fn clone(&self) -> BeforePermission
fn clone(&self) -> BeforePermission
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BeforePermission
impl Debug for BeforePermission
Source§impl HookStep for BeforePermission
impl HookStep for BeforePermission
Source§fn event_name(&self) -> &'static str
fn event_name(&self) -> &'static str
Event name (snake_case). Used in envelope headers and matchers.
Source§fn to_envelope(&self) -> Value
fn to_envelope(&self) -> Value
Projects the step into an input envelope — fed to command stdin / prompt
templates. Contains a common header plus step-specific fields.
Source§fn apply_verdict(
&mut self,
verdict: &Value,
) -> Result<HookControl, VerdictError>
fn apply_verdict( &mut self, verdict: &Value, ) -> Result<HookControl, VerdictError>
Apply the handler’s output verdict (JSON) back to this step: parse the common
control / additional_context fields, then handle the step-specific “fill
output” fields. Returns a control directive. Read moreAuto Trait Implementations§
impl Freeze for BeforePermission
impl RefUnwindSafe for BeforePermission
impl Send for BeforePermission
impl Sync for BeforePermission
impl Unpin for BeforePermission
impl UnsafeUnpin for BeforePermission
impl UnwindSafe for BeforePermission
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