pub struct ToolHttpSource {
pub url: String,
pub method: Option<String>,
pub headers: Option<BTreeMap<String, String>>,
pub allow_private_network: Option<bool>,
}Expand description
Config for an http tool source: a governed HTTP call. Mirrors the parser’s
SkillHttpSource. Header values may carry ${secret:NAME} references resolved
at invocation; allow_private_network is the explicit, default-off opt-in to
reach private/loopback endpoints (the governed transport blocks them otherwise).
Fields§
§url: String§method: Option<String>§headers: Option<BTreeMap<String, String>>§allow_private_network: Option<bool>Trait Implementations§
Source§impl Clone for ToolHttpSource
impl Clone for ToolHttpSource
Source§fn clone(&self) -> ToolHttpSource
fn clone(&self) -> ToolHttpSource
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 ToolHttpSource
impl Debug for ToolHttpSource
Source§impl<'de> Deserialize<'de> for ToolHttpSource
impl<'de> Deserialize<'de> for ToolHttpSource
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
impl Eq for ToolHttpSource
Source§impl PartialEq for ToolHttpSource
impl PartialEq for ToolHttpSource
Source§fn eq(&self, other: &ToolHttpSource) -> bool
fn eq(&self, other: &ToolHttpSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RunxSchema for ToolHttpSource
impl RunxSchema for ToolHttpSource
Source§fn json_schema() -> Value
fn json_schema() -> Value
The inlined JSON Schema for this type.
Source§impl Serialize for ToolHttpSource
impl Serialize for ToolHttpSource
impl StructuralPartialEq for ToolHttpSource
Auto Trait Implementations§
impl Freeze for ToolHttpSource
impl RefUnwindSafe for ToolHttpSource
impl Send for ToolHttpSource
impl Sync for ToolHttpSource
impl Unpin for ToolHttpSource
impl UnsafeUnpin for ToolHttpSource
impl UnwindSafe for ToolHttpSource
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