pub struct PreToolUseInput {
pub timestamp: i64,
pub cwd: PathBuf,
pub tool_name: String,
pub tool_args: Value,
}Expand description
Input for the preToolUse hook — received before a tool executes.
Fields§
§timestamp: i64Unix timestamp (ms).
cwd: PathBufWorking directory.
tool_name: StringName of the tool about to execute.
tool_args: ValueArguments passed to the tool.
Trait Implementations§
Source§impl Clone for PreToolUseInput
impl Clone for PreToolUseInput
Source§fn clone(&self) -> PreToolUseInput
fn clone(&self) -> PreToolUseInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PreToolUseInput
impl Debug for PreToolUseInput
Source§impl<'de> Deserialize<'de> for PreToolUseInput
impl<'de> Deserialize<'de> for PreToolUseInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PreToolUseInput
impl RefUnwindSafe for PreToolUseInput
impl Send for PreToolUseInput
impl Sync for PreToolUseInput
impl Unpin for PreToolUseInput
impl UnsafeUnpin for PreToolUseInput
impl UnwindSafe for PreToolUseInput
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