[][src]Struct xi_core_lib::plugins::manifest::PluginDescription

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>,
}

Describes attributes and capabilities of a plugin.

Note: - these will eventually be loaded from manifest files.

Fields

name: Stringversion: Stringscope: PluginScopeexec_path: PathBuf

path to plugin executable

activations: Vec<PluginActivation>

Events that cause this plugin to run

commands: Vec<Command>languages: Vec<LanguageDefinition>

Methods

impl PluginDescription[src]

pub fn is_global(&self) -> bool[src]

Returns true if this plugin is globally scoped, else false.

Trait Implementations

impl Clone for PluginDescription[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for PluginDescription[src]

impl Serialize for PluginDescription[src]

impl<'de> Deserialize<'de> for PluginDescription[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]