pub struct JsonToolRegistryStorage;Expand description
JSON-based tool registry storage
This implementation stores tool registries as JSON files.
Implementations§
Trait Implementations§
Source§impl Default for JsonToolRegistryStorage
impl Default for JsonToolRegistryStorage
Source§impl ToolRegistryStorage for JsonToolRegistryStorage
impl ToolRegistryStorage for JsonToolRegistryStorage
Source§fn save_registry(&self, registry: &ToolRegistry, path: &Path) -> Result<()>
fn save_registry(&self, registry: &ToolRegistry, path: &Path) -> Result<()>
Save a tool registry to storage Read more
Source§fn load_registry(&self, path: &Path) -> Result<ToolRegistry>
fn load_registry(&self, path: &Path) -> Result<ToolRegistry>
Load a tool registry from storage Read more
Source§fn save_tool(&self, tool: &ToolMetadata, path: &Path) -> Result<()>
fn save_tool(&self, tool: &ToolMetadata, path: &Path) -> Result<()>
Save a single tool to storage Read more
Source§fn load_tool(&self, path: &Path) -> Result<ToolMetadata>
fn load_tool(&self, path: &Path) -> Result<ToolMetadata>
Load a single tool from storage Read more
Source§fn list_tools(&self, path: &Path) -> Result<Vec<ToolMetadata>>
fn list_tools(&self, path: &Path) -> Result<Vec<ToolMetadata>>
List all tools in a directory Read more
Auto Trait Implementations§
impl Freeze for JsonToolRegistryStorage
impl RefUnwindSafe for JsonToolRegistryStorage
impl Send for JsonToolRegistryStorage
impl Sync for JsonToolRegistryStorage
impl Unpin for JsonToolRegistryStorage
impl UnwindSafe for JsonToolRegistryStorage
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