pub struct HookContext {
pub agent_name: String,
pub worktree_path: PathBuf,
pub branch: String,
pub project_root: PathBuf,
pub env_vars: HashMap<String, String>,
}Expand description
フック実行のコンテキスト情報
Fields§
§agent_name: Stringエージェント名
worktree_path: PathBufワークツリーのパス
branch: Stringブランチ名
project_root: PathBufプロジェクトルートパス
env_vars: HashMap<String, String>追加の環境変数
Implementations§
Trait Implementations§
Source§impl Clone for HookContext
impl Clone for HookContext
Source§fn clone(&self) -> HookContext
fn clone(&self) -> HookContext
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 moreAuto Trait Implementations§
impl Freeze for HookContext
impl RefUnwindSafe for HookContext
impl Send for HookContext
impl Sync for HookContext
impl Unpin for HookContext
impl UnsafeUnpin for HookContext
impl UnwindSafe for HookContext
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