pub struct HookDef {
pub name: String,
pub role: Role,
pub runner: Runner,
pub timeout: u64,
pub env: Vec<String>,
pub files: Vec<String>,
pub definition: Value,
}Expand description
One [hooks.<name>] table.
Fields§
§name: StringThe table’s name.
role: RoleGate or observer.
runner: RunnerWhat it runs.
timeout: u64Seconds before it is stopped.
env: Vec<String>Variable names passed through the scrubbed environment.
files: Vec<String>More files it depends on (its configuration, scripts a shell line runs): digested with it, never writable by the model.
definition: ValueThe table as canonical JSON: what a digest and a trust prompt cover.
Implementations§
Trait Implementations§
impl StructuralPartialEq for HookDef
Auto Trait Implementations§
impl Forget for HookDef
impl Freeze for HookDef
impl RefUnwindSafe for HookDef
impl Send for HookDef
impl Sync for HookDef
impl Unpin for HookDef
impl UnsafeUnpin for HookDef
impl UnwindSafe for HookDef
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