pub struct Tool {
pub name: String,
pub display_name: String,
pub description: String,
pub cli_command: String,
pub config: ToolConfig,
pub is_installed: bool,
pub is_available: bool,
}Expand description
Core tool representation
Fields§
§name: String§display_name: String§description: String§cli_command: String§config: ToolConfig§is_installed: bool§is_available: boolImplementations§
Source§impl Tool
impl Tool
pub fn new( name: String, display_name: String, description: String, cli_command: String, config: ToolConfig, is_installed: bool, is_available: bool, ) -> Self
pub fn from_tool_definition( name: String, definition: &ToolDefinition, is_installed: bool, ) -> Self
pub fn set_installed(&mut self, installed: bool)
pub fn is_available(&self) -> bool
Trait Implementations§
impl StructuralPartialEq for Tool
Auto Trait Implementations§
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnwindSafe for Tool
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