pub struct SnapshotTool;Expand description
Tool for getting an ARIA snapshot of the page in YAML format
Trait Implementations§
Source§impl Default for SnapshotTool
impl Default for SnapshotTool
Source§fn default() -> SnapshotTool
fn default() -> SnapshotTool
Returns the “default value” for a type. Read more
Source§impl Tool for SnapshotTool
impl Tool for SnapshotTool
Source§type Params = SnapshotParams
type Params = SnapshotParams
Associated parameter type for this tool
Source§fn execute_typed(
&self,
params: SnapshotParams,
context: &mut ToolContext<'_>,
) -> Result<ToolResult>
fn execute_typed( &self, params: SnapshotParams, 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 SnapshotTool
impl RefUnwindSafe for SnapshotTool
impl Send for SnapshotTool
impl Sync for SnapshotTool
impl Unpin for SnapshotTool
impl UnwindSafe for SnapshotTool
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