pub struct PostToolUseInput {
pub timestamp: i64,
pub cwd: PathBuf,
pub tool_name: String,
pub tool_args: Value,
pub tool_result: Value,
}Expand description
Input for the postToolUse hook — received after a tool executes.
Fields§
§timestamp: i64Unix timestamp (ms).
cwd: PathBufWorking directory.
tool_name: StringName of the tool that executed.
tool_args: ValueArguments that were passed to the tool.
tool_result: ValueResult returned by the tool.
Trait Implementations§
Source§impl Clone for PostToolUseInput
impl Clone for PostToolUseInput
Source§fn clone(&self) -> PostToolUseInput
fn clone(&self) -> PostToolUseInput
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 PostToolUseInput
impl Debug for PostToolUseInput
Source§impl<'de> Deserialize<'de> for PostToolUseInput
impl<'de> Deserialize<'de> for PostToolUseInput
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 PostToolUseInput
impl RefUnwindSafe for PostToolUseInput
impl Send for PostToolUseInput
impl Sync for PostToolUseInput
impl Unpin for PostToolUseInput
impl UnsafeUnpin for PostToolUseInput
impl UnwindSafe for PostToolUseInput
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