pub struct ClaudePreToolUseOutput {
pub continue_: bool,
pub stop_reason: Option<String>,
pub suppress_output: Option<bool>,
pub system_message: Option<String>,
pub hook_specific_output: Option<HookSpecificOutput>,
}Expand description
Common fields for all hook output types.
Fields§
§continue_: boolWhether to continue processing (default: true).
stop_reason: Option<String>Reason for stopping (when continue_ = false).
suppress_output: Option<bool>Whether to suppress output in Claude Code UI.
system_message: Option<String>System message to show to user.
hook_specific_output: Option<HookSpecificOutput>Hook-specific output fields.
Implementations§
Source§impl ClaudePreToolUseOutput
impl ClaudePreToolUseOutput
Sourcepub fn pre_tool_use_allow(
reason: Option<String>,
modified_input: Option<Value>,
) -> Self
pub fn pre_tool_use_allow( reason: Option<String>, modified_input: Option<Value>, ) -> Self
Create an “allow” response for PreToolUse.
Sourcepub fn pre_tool_use_deny(reason: String) -> Self
pub fn pre_tool_use_deny(reason: String) -> Self
Create a “deny” response for PreToolUse.
Sourcepub fn post_tool_use_allow(additional_context: Option<String>) -> Self
pub fn post_tool_use_allow(additional_context: Option<String>) -> Self
Create an “allow” response for PostToolUse with optional context.
Trait Implementations§
Source§impl Clone for ClaudePreToolUseOutput
impl Clone for ClaudePreToolUseOutput
Source§fn clone(&self) -> ClaudePreToolUseOutput
fn clone(&self) -> ClaudePreToolUseOutput
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 moreSource§impl Debug for ClaudePreToolUseOutput
impl Debug for ClaudePreToolUseOutput
Source§impl Default for ClaudePreToolUseOutput
impl Default for ClaudePreToolUseOutput
Source§impl<'de> Deserialize<'de> for ClaudePreToolUseOutput
impl<'de> Deserialize<'de> for ClaudePreToolUseOutput
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
Source§impl PartialEq for ClaudePreToolUseOutput
impl PartialEq for ClaudePreToolUseOutput
Source§impl Serialize for ClaudePreToolUseOutput
impl Serialize for ClaudePreToolUseOutput
impl StructuralPartialEq for ClaudePreToolUseOutput
Auto Trait Implementations§
impl Freeze for ClaudePreToolUseOutput
impl RefUnwindSafe for ClaudePreToolUseOutput
impl Send for ClaudePreToolUseOutput
impl Sync for ClaudePreToolUseOutput
impl Unpin for ClaudePreToolUseOutput
impl UnwindSafe for ClaudePreToolUseOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromResponse for Twhere
T: DeserializeOwned,
impl<T> FromResponse for Twhere
T: DeserializeOwned,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more