pub struct PluginManifest {
pub name: String,
pub version: String,
pub tools: Vec<(String, PluginToolSpec)>,
pub hooks: Vec<PluginHookSpec>,
}Expand description
A parsed, trust-gated-pending plugin.toml manifest — see the module
doc comment’s “Manifest schema” section for the ABI contract this
mirrors.
Fields§
§name: StringThe plugin’s own declared name, or its directory name when the
manifest omits name (see parse_manifest_str).
version: StringFree-form version string ("0.0.0" when omitted) — descriptive
only; this module does not interpret or compare versions.
tools: Vec<(String, PluginToolSpec)>(tool short name, spec) pairs from [[tools]], in manifest order.
An entry with an empty name or command is skipped (malformed,
not a crash — same “skip the bad entry” precedent
crate::configfile::lsp_servers_from_settings documents for
itself).
hooks: Vec<PluginHookSpec>[[hooks]] entries, in manifest order. An entry with an empty
event or command is skipped, same precedent as tools.
Trait Implementations§
Source§impl Clone for PluginManifest
impl Clone for PluginManifest
Source§fn clone(&self) -> PluginManifest
fn clone(&self) -> PluginManifest
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 PluginManifest
impl Debug for PluginManifest
Source§impl PartialEq for PluginManifest
impl PartialEq for PluginManifest
impl StructuralPartialEq for PluginManifest
Auto Trait Implementations§
impl Freeze for PluginManifest
impl RefUnwindSafe for PluginManifest
impl Send for PluginManifest
impl Sync for PluginManifest
impl Unpin for PluginManifest
impl UnsafeUnpin for PluginManifest
impl UnwindSafe for PluginManifest
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