pub enum ToolBackend {
Builtin,
Binary {
url: Option<String>,
path: Option<String>,
args_template: Option<String>,
},
Http {
url: String,
method: String,
headers: HashMap<String, String>,
body_template: Option<String>,
timeout_ms: u64,
},
Script {
interpreter: String,
script: String,
interpreter_args: Vec<String>,
},
}Expand description
Tool backend type for dynamic tools
Variants§
Builtin
Built-in Rust implementation
Binary
External binary executable
Fields
Http
HTTP API call
Fields
Script
Script execution
Trait Implementations§
Source§impl Clone for ToolBackend
impl Clone for ToolBackend
Source§fn clone(&self) -> ToolBackend
fn clone(&self) -> ToolBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolBackend
impl Debug for ToolBackend
Source§impl Default for ToolBackend
impl Default for ToolBackend
Source§fn default() -> ToolBackend
fn default() -> ToolBackend
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolBackend
impl<'de> Deserialize<'de> for ToolBackend
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 ToolBackend
impl RefUnwindSafe for ToolBackend
impl Send for ToolBackend
impl Sync for ToolBackend
impl Unpin for ToolBackend
impl UnsafeUnpin for ToolBackend
impl UnwindSafe for ToolBackend
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