pub struct HookContext<'a> {
pub event: &'a str,
pub env: BTreeMap<&'a str, &'a str>,
}Expand description
Context passed to hook commands as JSON on stdin.
Fields§
§event: &'a strThe lifecycle event being fired.
env: BTreeMap<&'a str, &'a str>Environment variables set for this hook (flattened as key-value pairs).
Trait Implementations§
Source§impl<'a> Debug for HookContext<'a>
impl<'a> Debug for HookContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for HookContext<'a>
impl<'a> RefUnwindSafe for HookContext<'a>
impl<'a> Send for HookContext<'a>
impl<'a> Sync for HookContext<'a>
impl<'a> Unpin for HookContext<'a>
impl<'a> UnsafeUnpin for HookContext<'a>
impl<'a> UnwindSafe for HookContext<'a>
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