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
The [plugin] section of a manifest.
Fields§
§name: StringPlugin name. This is the authoritative source — after loading, a host should check that the plugin’s self-declared name matches it.
version: StringPlugin version.
abi: Option<u32>Cross-boundary ABI version. For the host’s own use; this crate only moves it around.
family: Option<String>Ecosystem family. For the host’s own use; this crate only moves it around.
repository: Option<String>Plugin repository URL. Needed when downloading a prebuilt, to build the release URL.
description: Option<String>Human-readable description.
extra: TableAny other keys, preserved verbatim.
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