pub struct Tokens<'a> {
pub hook_dir: &'a str,
pub hook_target: &'a str,
pub hook_name: &'a str,
}Expand description
The values a hook’s text is substituted with.
Fields§
§hook_dir: &'a strReplaces HOOK_DIR_TOKEN: where the hook’s directory is installed.
hook_target: &'a strReplaces HOOK_TARGET_TOKEN: the target root (.claude, .codex, …), or plugin
in a plugin build’s shared tree.
hook_name: &'a strThe hook’s name, which a generated file carries as its identity. Not a token: no authored text is substituted with it.
Implementations§
Trait Implementations§
impl<'a> Copy for Tokens<'a>
Auto Trait Implementations§
impl<'a> Freeze for Tokens<'a>
impl<'a> RefUnwindSafe for Tokens<'a>
impl<'a> Send for Tokens<'a>
impl<'a> Sync for Tokens<'a>
impl<'a> Unpin for Tokens<'a>
impl<'a> UnsafeUnpin for Tokens<'a>
impl<'a> UnwindSafe for Tokens<'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