pub struct Plugin {
pub name: String,
pub description: Option<String>,
pub image: Option<PluginImage>,
pub type_descriptor: Option<TypeDescriptor>,
pub condition_flags: Option<ConditionFlagList>,
pub files: Option<FileList>,
}Expand description
An individual installation option the user can select.
Fields§
§name: String§description: Option<String>§image: Option<PluginImage>§type_descriptor: Option<TypeDescriptor>§condition_flags: Option<ConditionFlagList>§files: Option<FileList>Implementations§
Source§impl Plugin
impl Plugin
Sourcepub fn plugin_type(&self) -> PluginType
pub fn plugin_type(&self) -> PluginType
Resolved plugin type using static information only, defaulting to Optional.
For dependencyType descriptors, returns the default type without
evaluating patterns. Use plugin_type_in_context
when runtime condition evaluation is needed.
Sourcepub fn plugin_type_in_context(&self, ctx: &EvalContext) -> PluginType
pub fn plugin_type_in_context(&self, ctx: &EvalContext) -> PluginType
Resolved plugin type with runtime condition evaluation.
Evaluates dependencyType patterns against the provided context,
falling back to the default type if no pattern matches.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Plugin
impl<'de> Deserialize<'de> for Plugin
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 Plugin
impl RefUnwindSafe for Plugin
impl Send for Plugin
impl Sync for Plugin
impl Unpin for Plugin
impl UnsafeUnpin for Plugin
impl UnwindSafe for Plugin
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