pub struct HookRunResult {
pub started_at: DateTime<Utc>,
pub ended_at: DateTime<Utc>,
pub duration_ms: u64,
pub exit_code: Option<i32>,
pub timed_out: bool,
pub stdout: HookStreamOutput,
pub stderr: HookStreamOutput,
}Expand description
Structured outcome for one hook invocation.
Fields§
§started_at: DateTime<Utc>Hook execution start time.
ended_at: DateTime<Utc>Hook execution end time.
duration_ms: u64Total wall-clock duration in milliseconds.
exit_code: Option<i32>Process exit code (None when terminated by signal/timeout without code).
timed_out: boolWhether execution hit timeout enforcement.
stdout: HookStreamOutputCaptured/truncated stdout.
stderr: HookStreamOutputCaptured/truncated stderr.
Trait Implementations§
Source§impl Clone for HookRunResult
impl Clone for HookRunResult
Source§fn clone(&self) -> HookRunResult
fn clone(&self) -> HookRunResult
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 HookRunResult
impl Debug for HookRunResult
Source§impl<'de> Deserialize<'de> for HookRunResult
impl<'de> Deserialize<'de> for HookRunResult
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 HookRunResult
impl RefUnwindSafe for HookRunResult
impl Send for HookRunResult
impl Sync for HookRunResult
impl Unpin for HookRunResult
impl UnsafeUnpin for HookRunResult
impl UnwindSafe for HookRunResult
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