pub struct PreToolUseOutput { /* private fields */ }Implementations§
Source§impl PreToolUseOutput
impl PreToolUseOutput
pub fn new() -> Self
pub fn allow() -> Self
pub fn deny(reason: impl Into<String>) -> Self
pub fn ask(reason: impl Into<String>) -> Self
pub fn pass() -> Self
pub fn decision(&self) -> Option<PreToolUseDecision>
pub fn reason(&self) -> Option<&str>
pub fn updated_input(&self) -> Option<&ToolInput>
pub fn set_decision(&mut self, decision: PreToolUseDecision)
pub fn set_reason(&mut self, reason: impl Into<String>)
pub fn set_updated_input(&mut self, input: ToolInput)
pub fn with_decision(self, decision: PreToolUseDecision) -> Self
pub fn with_reason(self, reason: impl Into<String>) -> Self
pub fn with_updated_input(self, input: ToolInput) -> Self
pub fn to_hook_response(&self) -> Value
Trait Implementations§
Source§impl Clone for PreToolUseOutput
impl Clone for PreToolUseOutput
Source§fn clone(&self) -> PreToolUseOutput
fn clone(&self) -> PreToolUseOutput
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 PreToolUseOutput
impl Debug for PreToolUseOutput
Source§impl Default for PreToolUseOutput
impl Default for PreToolUseOutput
Source§fn default() -> PreToolUseOutput
fn default() -> PreToolUseOutput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PreToolUseOutput
impl RefUnwindSafe for PreToolUseOutput
impl Send for PreToolUseOutput
impl Sync for PreToolUseOutput
impl Unpin for PreToolUseOutput
impl UnsafeUnpin for PreToolUseOutput
impl UnwindSafe for PreToolUseOutput
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