#[non_exhaustive]pub struct HookRuntimeOptions {
pub timeout_seconds: Option<u64>,
pub status_message: Option<String>,
pub async_run: Option<bool>,
pub shell: Option<String>,
pub windows_command: Option<HookCommand>,
pub codex_inline_toml: Option<bool>,
}Expand description
Optional execution configuration for command hooks.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.timeout_seconds: Option<u64>Maximum time in seconds the harness should allow the hook script to run.
status_message: Option<String>Optional status message the harness should display while executing the hook.
async_run: Option<bool>Whether the hook should run asynchronously (non-blocking).
shell: Option<String>Custom shell path to use when executing the command (e.g. "/bin/bash").
windows_command: Option<HookCommand>Windows-specific command override.
codex_inline_toml: Option<bool>Codex-specific: install inline inside config.toml instead of hooks.json.
Trait Implementations§
Source§impl Clone for HookRuntimeOptions
impl Clone for HookRuntimeOptions
Source§fn clone(&self) -> HookRuntimeOptions
fn clone(&self) -> HookRuntimeOptions
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 HookRuntimeOptions
impl Debug for HookRuntimeOptions
Source§impl Default for HookRuntimeOptions
impl Default for HookRuntimeOptions
Source§fn default() -> HookRuntimeOptions
fn default() -> HookRuntimeOptions
Returns the “default value” for a type. Read more
impl Eq for HookRuntimeOptions
Source§impl PartialEq for HookRuntimeOptions
impl PartialEq for HookRuntimeOptions
Source§fn eq(&self, other: &HookRuntimeOptions) -> bool
fn eq(&self, other: &HookRuntimeOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HookRuntimeOptions
Auto Trait Implementations§
impl Freeze for HookRuntimeOptions
impl RefUnwindSafe for HookRuntimeOptions
impl Send for HookRuntimeOptions
impl Sync for HookRuntimeOptions
impl Unpin for HookRuntimeOptions
impl UnsafeUnpin for HookRuntimeOptions
impl UnwindSafe for HookRuntimeOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.