pub struct HookRunResponse {
pub hook: PathBuf,
pub stdout: String,
pub stderr: String,
pub code: i32,
}Expand description
Response from running a hook
Fields§
§hook: PathBufpath of the hook that was run
stdout: Stringstdout output emitted by hook
stderr: Stringstderr output emitted by hook
code: i32exit code as reported back from process calling the hook (0 = success)
Implementations§
Source§impl HookRunResponse
impl HookRunResponse
Sourcepub const fn is_successful(&self) -> bool
pub const fn is_successful(&self) -> bool
Check if the hook succeeded (exit code 0)
Trait Implementations§
Source§impl Debug for HookRunResponse
impl Debug for HookRunResponse
Source§impl PartialEq for HookRunResponse
impl PartialEq for HookRunResponse
impl Eq for HookRunResponse
impl StructuralPartialEq for HookRunResponse
Auto Trait Implementations§
impl Freeze for HookRunResponse
impl RefUnwindSafe for HookRunResponse
impl Send for HookRunResponse
impl Sync for HookRunResponse
impl Unpin for HookRunResponse
impl UnsafeUnpin for HookRunResponse
impl UnwindSafe for HookRunResponse
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