pub struct HttpFactoryToolInput {
pub path: Option<String>,
pub url: Option<String>,
pub method: HttpMethod,
pub headers: HashMap<String, String>,
pub body: Option<Value>,
}Expand description
Input for a factory-created HTTP tool.
Fields§
§path: Option<String>Request path (appended to base_url). Used for platform API calls.
url: Option<String>Absolute URL. When set, path is ignored and base_url is NOT prepended.
Use this for external API calls (e.g., googleapis.com, slack.com).
Set x-connection-id header to auto-inject OAuth Bearer token.
method: HttpMethodHTTP method. Defaults to GET.
headers: HashMap<String, String>Additional headers (merged with factory defaults, per-call wins).
body: Option<Value>Request body.
Trait Implementations§
Source§impl Clone for HttpFactoryToolInput
impl Clone for HttpFactoryToolInput
Source§fn clone(&self) -> HttpFactoryToolInput
fn clone(&self) -> HttpFactoryToolInput
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 HttpFactoryToolInput
impl Debug for HttpFactoryToolInput
Source§impl<'de> Deserialize<'de> for HttpFactoryToolInput
impl<'de> Deserialize<'de> for HttpFactoryToolInput
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 HttpFactoryToolInput
impl RefUnwindSafe for HttpFactoryToolInput
impl Send for HttpFactoryToolInput
impl Sync for HttpFactoryToolInput
impl Unpin for HttpFactoryToolInput
impl UnsafeUnpin for HttpFactoryToolInput
impl UnwindSafe for HttpFactoryToolInput
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