pub struct PluginMetadata {
pub id: String,
pub name: String,
pub version: String,
pub enabled: bool,
pub state: PluginState,
pub dependencies: Vec<String>,
pub priority: i32,
pub last_error: Option<String>,
}Expand description
Metadata for a plugin instance.
Contains information about a plugin’s identity, state, configuration, and lifecycle management.
Fields§
§id: StringUnique identifier for this plugin instance
name: StringHuman-readable plugin name
version: StringPlugin version string
enabled: boolWhether the plugin is enabled
state: PluginStateCurrent lifecycle state of the plugin
dependencies: Vec<String>List of plugin dependencies (other plugin names)
priority: i32Execution priority (lower numbers = higher priority)
last_error: Option<String>Last error message if the plugin failed
Trait Implementations§
Source§impl Clone for PluginMetadata
impl Clone for PluginMetadata
Source§fn clone(&self) -> PluginMetadata
fn clone(&self) -> PluginMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PluginMetadata
impl Debug for PluginMetadata
Source§impl<'de> Deserialize<'de> for PluginMetadata
impl<'de> Deserialize<'de> for PluginMetadata
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 PluginMetadata
impl RefUnwindSafe for PluginMetadata
impl Send for PluginMetadata
impl Sync for PluginMetadata
impl Unpin for PluginMetadata
impl UnsafeUnpin for PluginMetadata
impl UnwindSafe for PluginMetadata
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