pub struct HttpTool { /* private fields */ }Expand description
Runtime HTTP tool that executes templated HTTP requests.
Implementations§
Source§impl HttpTool
impl HttpTool
Sourcepub fn new(
name: impl Into<String>,
description: impl Into<String>,
parameters_schema: Value,
config: HttpToolConfig,
) -> Self
pub fn new( name: impl Into<String>, description: impl Into<String>, parameters_schema: Value, config: HttpToolConfig, ) -> Self
Create an HTTP tool from its runtime configuration.
Sourcepub fn parse_config(execution_config: &Value) -> Result<HttpToolConfig>
pub fn parse_config(execution_config: &Value) -> Result<HttpToolConfig>
Parse execution_config JSONB into HttpToolConfig.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HttpTool
impl !UnwindSafe for HttpTool
impl Freeze for HttpTool
impl Send for HttpTool
impl Sync for HttpTool
impl Unpin for HttpTool
impl UnsafeUnpin for HttpTool
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