pub struct SupplyChainCfg {
pub pinning: bool,
pub on_changed_tool: String,
pub on_new_tool: String,
}Expand description
v0.9 MCP supply-chain protection. Controls TOFU pinning of the upstream’s tool catalog and what happens when a pinned tool’s definition changes underneath the user (a “rug pull”).
Fields§
§pinning: boolMaster switch for catalog pinning. When false, tools/list
results pass through unpinned (description-scan rules still run).
on_changed_tool: StringAction when a pinned tool’s (description, schema) hash changes:
block (default) | warn | allow.
on_new_tool: StringAction when a server adds a tool after first pin: warn
(default, and the tool is pinned) | block | allow.
Trait Implementations§
Source§impl Clone for SupplyChainCfg
impl Clone for SupplyChainCfg
Source§fn clone(&self) -> SupplyChainCfg
fn clone(&self) -> SupplyChainCfg
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 SupplyChainCfg
impl Debug for SupplyChainCfg
Source§impl Default for SupplyChainCfg
impl Default for SupplyChainCfg
Source§impl<'de> Deserialize<'de> for SupplyChainCfg
impl<'de> Deserialize<'de> for SupplyChainCfg
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 SupplyChainCfg
impl RefUnwindSafe for SupplyChainCfg
impl Send for SupplyChainCfg
impl Sync for SupplyChainCfg
impl Unpin for SupplyChainCfg
impl UnsafeUnpin for SupplyChainCfg
impl UnwindSafe for SupplyChainCfg
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