pub struct HookRunRequest {
pub phase_event: String,
pub hook_name: String,
pub command: Vec<String>,
pub workspace_root: PathBuf,
pub cwd: Option<PathBuf>,
pub env: HashMap<String, String>,
pub timeout_seconds: u64,
pub max_output_bytes: u64,
pub stdin_payload: Value,
}Expand description
Input contract for executing a single lifecycle hook command.
Fields§
§phase_event: StringCanonical lifecycle phase-event key (for example pre.loop.start).
hook_name: StringStable hook identifier from config (hooks.events.<phase>[].name).
command: Vec<String>Command argv (command[0] executable + args).
workspace_root: PathBufProject workspace root used as the base for relative cwd resolution.
cwd: Option<PathBuf>Optional per-hook working directory override.
env: HashMap<String, String>Optional per-hook environment variable overrides.
timeout_seconds: u64Hook timeout guardrail in seconds.
max_output_bytes: u64Max captured bytes per output stream.
stdin_payload: ValueJSON lifecycle payload that will be written to stdin.
Trait Implementations§
Source§impl Clone for HookRunRequest
impl Clone for HookRunRequest
Source§fn clone(&self) -> HookRunRequest
fn clone(&self) -> HookRunRequest
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 HookRunRequest
impl Debug for HookRunRequest
Source§impl<'de> Deserialize<'de> for HookRunRequest
impl<'de> Deserialize<'de> for HookRunRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HookRunRequest
impl RefUnwindSafe for HookRunRequest
impl Send for HookRunRequest
impl Sync for HookRunRequest
impl Unpin for HookRunRequest
impl UnsafeUnpin for HookRunRequest
impl UnwindSafe for HookRunRequest
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