pub struct PluginCapabilityPreview {
pub name: String,
pub declared_capabilities: Vec<String>,
pub capabilities_toml: Option<Value>,
pub hooks: Vec<String>,
pub mcp: Vec<String>,
pub bin: Vec<String>,
}Expand description
A summary of what a plugin declares it will do, shown before install/enable.
These are advisory disclosures for informed consent, not an enforced sandbox
(see PluginManifest::capabilities).
Fields§
§name: String§declared_capabilities: Vec<String>§capabilities_toml: Option<Value>§hooks: Vec<String>§mcp: Vec<String>§bin: Vec<String>Trait Implementations§
Source§impl Clone for PluginCapabilityPreview
impl Clone for PluginCapabilityPreview
Source§fn clone(&self) -> PluginCapabilityPreview
fn clone(&self) -> PluginCapabilityPreview
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 PluginCapabilityPreview
impl Debug for PluginCapabilityPreview
Source§impl<'de> Deserialize<'de> for PluginCapabilityPreview
impl<'de> Deserialize<'de> for PluginCapabilityPreview
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 PluginCapabilityPreview
impl RefUnwindSafe for PluginCapabilityPreview
impl Send for PluginCapabilityPreview
impl Sync for PluginCapabilityPreview
impl Unpin for PluginCapabilityPreview
impl UnsafeUnpin for PluginCapabilityPreview
impl UnwindSafe for PluginCapabilityPreview
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