pub struct SyntheticToolResult {
pub body: ToolResultBody,
pub is_error: bool,
}Expand description
A synthetic tool result produced by a hook — setting BeforeToolApply::result
effectively “intercepts” the tool.
Fields§
§body: ToolResultBody§is_error: boolTrait Implementations§
Source§impl Clone for SyntheticToolResult
impl Clone for SyntheticToolResult
Source§fn clone(&self) -> SyntheticToolResult
fn clone(&self) -> SyntheticToolResult
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 SyntheticToolResult
impl Debug for SyntheticToolResult
Source§impl PartialEq for SyntheticToolResult
impl PartialEq for SyntheticToolResult
Source§fn eq(&self, other: &SyntheticToolResult) -> bool
fn eq(&self, other: &SyntheticToolResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SyntheticToolResult
Auto Trait Implementations§
impl Freeze for SyntheticToolResult
impl RefUnwindSafe for SyntheticToolResult
impl Send for SyntheticToolResult
impl Sync for SyntheticToolResult
impl Unpin for SyntheticToolResult
impl UnsafeUnpin for SyntheticToolResult
impl UnwindSafe for SyntheticToolResult
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