pub struct PluginDescriptor {Show 14 fields
pub name: String,
pub version: PluginVersion,
pub description: String,
pub author: String,
pub license: String,
pub homepage: Option<String>,
pub repository: Option<String>,
pub category: PluginCategory,
pub capabilities: Vec<PluginCapability>,
pub supported_platforms: Vec<BuildTarget>,
pub min_engine_version: PluginVersion,
pub dependencies: Vec<PluginDependency>,
pub js_package: Option<String>,
pub keywords: Vec<String>,
}Expand description
Full descriptor for a plugin package.
Fields§
§name: String§version: PluginVersion§description: String§license: String§homepage: Option<String>§repository: Option<String>§category: PluginCategory§capabilities: Vec<PluginCapability>§supported_platforms: Vec<BuildTarget>§min_engine_version: PluginVersion§dependencies: Vec<PluginDependency>§js_package: Option<String>§keywords: Vec<String>Implementations§
Source§impl PluginDescriptor
impl PluginDescriptor
Sourcepub fn supports_platform(&self, target: &BuildTarget) -> bool
pub fn supports_platform(&self, target: &BuildTarget) -> bool
Check if this plugin supports the given platform.
Sourcepub fn is_compatible_with_engine(&self, engine_version: &PluginVersion) -> bool
pub fn is_compatible_with_engine(&self, engine_version: &PluginVersion) -> bool
Check if this plugin is compatible with the given engine version.
Sourcepub fn check_dependencies(
&self,
installed: &HashMap<String, PluginVersion>,
) -> Vec<String>
pub fn check_dependencies( &self, installed: &HashMap<String, PluginVersion>, ) -> Vec<String>
Check if all dependencies are satisfied by the given installed set.
Trait Implementations§
Source§impl Clone for PluginDescriptor
impl Clone for PluginDescriptor
Source§fn clone(&self) -> PluginDescriptor
fn clone(&self) -> PluginDescriptor
Returns a duplicate 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 PluginDescriptor
impl Debug for PluginDescriptor
Source§impl<'de> Deserialize<'de> for PluginDescriptor
impl<'de> Deserialize<'de> for PluginDescriptor
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 PluginDescriptor
impl RefUnwindSafe for PluginDescriptor
impl Send for PluginDescriptor
impl Sync for PluginDescriptor
impl Unpin for PluginDescriptor
impl UnsafeUnpin for PluginDescriptor
impl UnwindSafe for PluginDescriptor
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