pub struct PluginBundle {
pub name: String,
pub version: String,
pub bundle_type: BundleType,
pub plugins: Vec<String>,
pub metadata: BundleMetadata,
}Expand description
Bundle specification for packaging
Fields§
§name: String§version: String§bundle_type: BundleType§plugins: Vec<String>§metadata: BundleMetadataImplementations§
Source§impl PluginBundle
impl PluginBundle
pub fn new(name: &str, version: &str, bundle_type: BundleType) -> Self
pub fn add_plugin(&mut self, name: String)
pub fn plugin_count(&self) -> usize
Trait Implementations§
Source§impl Clone for PluginBundle
impl Clone for PluginBundle
Source§fn clone(&self) -> PluginBundle
fn clone(&self) -> PluginBundle
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 PluginBundle
impl Debug for PluginBundle
Source§impl<'de> Deserialize<'de> for PluginBundle
impl<'de> Deserialize<'de> for PluginBundle
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 PluginBundle
impl RefUnwindSafe for PluginBundle
impl Send for PluginBundle
impl Sync for PluginBundle
impl Unpin for PluginBundle
impl UnsafeUnpin for PluginBundle
impl UnwindSafe for PluginBundle
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