pub struct PluginMetadata {
pub id: String,
pub disabled: bool,
pub name: String,
pub description: String,
pub version: String,
pub author: Option<String>,
pub library_path: Option<String>,
pub config_path: String,
pub instance_id: Option<String>,
}
Expand description
插件元数据结构
Fields§
§id: String
§disabled: bool
§name: String
§description: String
§version: String
§library_path: Option<String>
§config_path: String
§instance_id: Option<String>
Implementations§
Source§impl PluginMetadata
impl PluginMetadata
Sourcepub fn to_ffi(&self) -> PluginMetadataFFI
pub fn to_ffi(&self) -> PluginMetadataFFI
转换为FFI安全的结构 注意:调用者需要负责释放返回的字符串内存
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 · 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 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