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