pub struct HttpToolConfig {
pub method: String,
pub url_template: String,
pub headers_template: Option<Value>,
pub body_template: Option<Value>,
pub timeout_secs: Option<u64>,
}Expand description
HTTP-specific configuration parsed from execution_config JSONB.
Fields§
§method: StringHTTP method: GET, POST, PUT, PATCH, DELETE, etc.
url_template: StringURL template with {{param}} placeholders.
headers_template: Option<Value>Optional header templates (object with {{param}} values).
body_template: Option<Value>Optional body template (JSON value with {{param}} placeholders).
timeout_secs: Option<u64>Request timeout in seconds (default: 30).
Trait Implementations§
Source§impl Clone for HttpToolConfig
impl Clone for HttpToolConfig
Source§fn clone(&self) -> HttpToolConfig
fn clone(&self) -> HttpToolConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HttpToolConfig
impl Debug for HttpToolConfig
Source§impl Default for HttpToolConfig
impl Default for HttpToolConfig
Source§impl<'de> Deserialize<'de> for HttpToolConfig
impl<'de> Deserialize<'de> for HttpToolConfig
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
Source§impl PartialEq for HttpToolConfig
impl PartialEq for HttpToolConfig
Source§impl Serialize for HttpToolConfig
impl Serialize for HttpToolConfig
impl StructuralPartialEq for HttpToolConfig
Auto Trait Implementations§
impl Freeze for HttpToolConfig
impl RefUnwindSafe for HttpToolConfig
impl Send for HttpToolConfig
impl Sync for HttpToolConfig
impl Unpin for HttpToolConfig
impl UnsafeUnpin for HttpToolConfig
impl UnwindSafe for HttpToolConfig
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