pub fn encode_tool(tool: &Tool) -> Result<Tool, ToolWitError>
Encode a Tool into its flat WIT representation.
Tool