pub struct PluginDescription {
pub name: String,
pub version: String,
pub scope: PluginScope,
pub exec_path: PathBuf,
pub activations: Vec<PluginActivation>,
pub commands: Vec<Command>,
pub languages: Vec<LanguageDefinition>,
}
Expand description
Describes attributes and capabilities of a plugin.
Note: - these will eventually be loaded from manifest files.
Fields§
§name: String
§version: String
§scope: PluginScope
§exec_path: PathBuf
path to plugin executable
activations: Vec<PluginActivation>
Events that cause this plugin to run
commands: Vec<Command>
§languages: Vec<LanguageDefinition>
Implementations§
Trait Implementations§
Source§impl Clone for PluginDescription
impl Clone for PluginDescription
Source§fn clone(&self) -> PluginDescription
fn clone(&self) -> PluginDescription
Returns a copy of the value. Read more
1.0.0 · 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 PluginDescription
impl Debug for PluginDescription
Source§impl<'de> Deserialize<'de> for PluginDescription
impl<'de> Deserialize<'de> for PluginDescription
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 PluginDescription
impl RefUnwindSafe for PluginDescription
impl Send for PluginDescription
impl Sync for PluginDescription
impl Unpin for PluginDescription
impl UnwindSafe for PluginDescription
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