pub enum ToolPin {
Wasm {
identity: String,
module: String,
wasm_sha256: String,
capabilities: Vec<ResolvedCapability>,
},
Script {
identity: String,
run: Vec<String>,
},
Mcp {
label: String,
command: Option<Vec<String>>,
env: BTreeMap<String, String>,
url: Option<String>,
headers: BTreeMap<String, String>,
},
}Expand description
Pinned values for one tool (enforcement accepts only these, not the plugin manifest).
Variants§
Wasm
wasm form: absolute component path + content hash + resolved capabilities.
Fields
§
capabilities: Vec<ResolvedCapability>Pinned capability allowlist values (paths absolute / hosts normalized).
Script
script form: pinned argv (absolute paths to prevent substitution).
Fields
Mcp
mcp form: pinned config for an in-package server (owned by the plugin; not written to connections.json).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolPin
impl<'de> Deserialize<'de> for ToolPin
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 ToolPin
impl StructuralPartialEq for ToolPin
Auto Trait Implementations§
impl Freeze for ToolPin
impl RefUnwindSafe for ToolPin
impl Send for ToolPin
impl Sync for ToolPin
impl Unpin for ToolPin
impl UnsafeUnpin for ToolPin
impl UnwindSafe for ToolPin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.