pub struct ToolCatalogContribution {
pub remove: Vec<String>,
}Expand description
A trusted plugin’s contribution to catalog assembly. Membership is the
execution gate, so the only override a contribution can express is removal
of a member (authority hiding, plan-mode gating). Adding members happens by
a [crate::ToolProvider] including them in its manifest list.
Fields§
§remove: Vec<String>Names of tools to remove from the catalog (non-membership).
Implementations§
Source§impl ToolCatalogContribution
impl ToolCatalogContribution
pub fn is_empty(&self) -> bool
pub fn remove_tools( tools: impl IntoIterator<Item = impl Into<String>>, ) -> ToolCatalogContribution
Trait Implementations§
Source§impl Clone for ToolCatalogContribution
impl Clone for ToolCatalogContribution
Source§fn clone(&self) -> ToolCatalogContribution
fn clone(&self) -> ToolCatalogContribution
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 ToolCatalogContribution
impl Debug for ToolCatalogContribution
Source§impl Default for ToolCatalogContribution
impl Default for ToolCatalogContribution
Source§fn default() -> ToolCatalogContribution
fn default() -> ToolCatalogContribution
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolCatalogContribution
impl<'de> Deserialize<'de> for ToolCatalogContribution
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCatalogContribution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolCatalogContribution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ToolCatalogContribution
impl Serialize for ToolCatalogContribution
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ToolCatalogContribution
impl RefUnwindSafe for ToolCatalogContribution
impl Send for ToolCatalogContribution
impl Sync for ToolCatalogContribution
impl Unpin for ToolCatalogContribution
impl UnsafeUnpin for ToolCatalogContribution
impl UnwindSafe for ToolCatalogContribution
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