pub struct HoverTool;Expand description
Tool for hovering over elements
Trait Implementations§
Source§impl Tool for HoverTool
impl Tool for HoverTool
Source§type Params = HoverParams
type Params = HoverParams
Associated parameter type for this tool
Source§fn execute_typed(
&self,
params: HoverParams,
context: &mut ToolContext<'_>,
) -> Result<ToolResult>
fn execute_typed( &self, params: HoverParams, 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 HoverTool
impl RefUnwindSafe for HoverTool
impl Send for HoverTool
impl Sync for HoverTool
impl Unpin for HoverTool
impl UnwindSafe for HoverTool
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