pub struct PluginSection {
pub name: String,
pub version: String,
pub abi: Option<u32>,
pub family: Option<String>,
pub repository: Option<String>,
pub description: Option<String>,
pub extra: Table,
}Expand description
manifest 的 [plugin] 段。
Fields§
§name: String插件名。这是权威来源 —— 加载后宿主应校验插件自报名是否与它一致。
version: String插件版本。
abi: Option<u32>跨边界 ABI 版本。宿主自用,本 crate 只做搬运。
family: Option<String>生态分组。宿主自用,本 crate 只做搬运。
repository: Option<String>插件仓库地址。prebuilt 下载时需要它来拼 Release URL。
description: Option<String>人类可读描述。
extra: Table其它键,原样保留。
Trait Implementations§
Source§impl Clone for PluginSection
impl Clone for PluginSection
Source§impl Debug for PluginSection
impl Debug for PluginSection
Source§impl<'de> Deserialize<'de> for PluginSection
impl<'de> Deserialize<'de> for PluginSection
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 PluginSection
impl RefUnwindSafe for PluginSection
impl Send for PluginSection
impl Sync for PluginSection
impl Unpin for PluginSection
impl UnsafeUnpin for PluginSection
impl UnwindSafe for PluginSection
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