pub struct CompositePlugin {
pub name: String,
pub version: String,
pub description: String,
pub components: Vec<PluginComponent>,
pub transitive_dependencies: HashMap<String, String>,
pub conflict_resolution: ConflictResolution,
}Expand description
Composite plugin definition
Fields§
§name: String§version: String§description: String§components: Vec<PluginComponent>§transitive_dependencies: HashMap<String, String>§conflict_resolution: ConflictResolutionImplementations§
Source§impl CompositePlugin
impl CompositePlugin
pub fn new(name: &str, version: &str, description: &str) -> Self
pub fn add_component(&mut self, component: PluginComponent)
pub fn add_transitive_dependency(&mut self, name: &str, version: &str)
pub fn required_components(&self) -> Vec<&PluginComponent>
pub fn optional_components(&self) -> Vec<&PluginComponent>
pub fn component_count(&self) -> usize
pub fn total_dependencies(&self) -> usize
Trait Implementations§
Source§impl Clone for CompositePlugin
impl Clone for CompositePlugin
Source§fn clone(&self) -> CompositePlugin
fn clone(&self) -> CompositePlugin
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 CompositePlugin
impl Debug for CompositePlugin
Source§impl<'de> Deserialize<'de> for CompositePlugin
impl<'de> Deserialize<'de> for CompositePlugin
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 CompositePlugin
impl RefUnwindSafe for CompositePlugin
impl Send for CompositePlugin
impl Sync for CompositePlugin
impl Unpin for CompositePlugin
impl UnsafeUnpin for CompositePlugin
impl UnwindSafe for CompositePlugin
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