pub struct ToolSpec {
pub name: String,
pub version: Option<String>,
pub dependencies: Vec<DependencySpec>,
pub metadata: HashMap<String, String>,
pub auto_installable: bool,
pub priority: i32,
}
Expand description
Specification for a tool and its dependencies
Fields§
§name: String
Tool name
version: Option<String>
Tool version (if specific version is required)
dependencies: Vec<DependencySpec>
List of dependencies
metadata: HashMap<String, String>
Tool metadata
auto_installable: bool
Whether this tool supports auto-installation
priority: i32
Installation priority (higher = install first)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolSpec
impl<'de> Deserialize<'de> for ToolSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ToolSpec
impl RefUnwindSafe for ToolSpec
impl Send for ToolSpec
impl Sync for ToolSpec
impl Unpin for ToolSpec
impl UnwindSafe for ToolSpec
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