pub struct ScreenshotTool;Trait Implementations§
Source§impl Default for ScreenshotTool
impl Default for ScreenshotTool
Source§fn default() -> ScreenshotTool
fn default() -> ScreenshotTool
Returns the “default value” for a type. Read more
Source§impl Tool for ScreenshotTool
impl Tool for ScreenshotTool
Source§type Params = ScreenshotParams
type Params = ScreenshotParams
Associated parameter type for this tool
Source§fn execute_typed(
&self,
params: ScreenshotParams,
context: &mut ToolContext<'_>,
) -> Result<ToolResult>
fn execute_typed( &self, params: ScreenshotParams, context: &mut ToolContext<'_>, ) -> Result<ToolResult>
Execute the tool with strongly-typed parameters
Source§fn parameters_schema(&self) -> Value
fn parameters_schema(&self) -> Value
Get tool parameter schema (JSON Schema)
Source§fn execute(
&self,
params: Value,
context: &mut ToolContext<'_>,
) -> Result<ToolResult>
fn execute( &self, params: Value, context: &mut ToolContext<'_>, ) -> Result<ToolResult>
Execute the tool with JSON parameters (default implementation)
Auto Trait Implementations§
impl Freeze for ScreenshotTool
impl RefUnwindSafe for ScreenshotTool
impl Send for ScreenshotTool
impl Sync for ScreenshotTool
impl Unpin for ScreenshotTool
impl UnwindSafe for ScreenshotTool
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