pub struct InstallHookResult {
pub outcome: InstallHookOutcome,
pub hook_path: String,
pub hook_display_path: String,
pub command_line: String,
}Expand description
Result returned by install_hook. Renders through the
transform-install-hook.jinja template; CLI exits 0 in all three
outcomes (every state is a success).
Fields§
§outcome: InstallHookOutcome§hook_path: StringAbsolute path of the hook file that was written or inspected.
hook_display_path: StringPath of the hook rendered relative to $HOME for display.
command_line: StringThe exact line the hook will execute on each commit. Surfaced
so the user can see what --strict looks like in their hook.
Trait Implementations§
Source§impl Clone for InstallHookResult
impl Clone for InstallHookResult
Source§fn clone(&self) -> InstallHookResult
fn clone(&self) -> InstallHookResult
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 InstallHookResult
impl Debug for InstallHookResult
Auto Trait Implementations§
impl Freeze for InstallHookResult
impl RefUnwindSafe for InstallHookResult
impl Send for InstallHookResult
impl Sync for InstallHookResult
impl Unpin for InstallHookResult
impl UnsafeUnpin for InstallHookResult
impl UnwindSafe for InstallHookResult
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