pub struct VariantInfo {
pub library: String,
pub checksum: String,
pub build: Option<Value>,
pub build_info: Option<BuildInfo>,
pub sbom: Option<Sbom>,
pub schema_checksum: Option<String>,
pub schemas: HashMap<String, SchemaInfo>,
}Expand description
Variant-specific library information.
Each variant represents a different build configuration (release, debug, etc.) of the same plugin for a specific platform.
In bundle format v1.1, variants may carry their own build_info, sbom,
schema_checksum, and schemas that override the top-level manifest values.
Fields§
§library: StringRelative path to the library within the bundle. Example: “lib/linux-x86_64/release/libplugin.so”
checksum: StringSHA256 checksum of the library file. Format: “sha256:hexstring”
build: Option<Value>Flexible build metadata - any JSON object. This can contain toolchain-specific fields like:
profile: “release” or “debug”opt_level: “0”, “1”, “2”, “3”, “s”, “z”features: [“json”, “binary”]cflags: “-O3 -march=native” (for C/C++)go_tags: [“production”] (for Go)
build_info: Option<BuildInfo>Build information specific to this variant (v1.1).
sbom: Option<Sbom>SBOM paths specific to this variant (v1.1).
schema_checksum: Option<String>Schema checksum specific to this variant (v1.1).
schemas: HashMap<String, SchemaInfo>Schema files specific to this variant (v1.1).
Trait Implementations§
Source§impl Clone for VariantInfo
impl Clone for VariantInfo
Source§fn clone(&self) -> VariantInfo
fn clone(&self) -> VariantInfo
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 VariantInfo
impl Debug for VariantInfo
Source§impl<'de> Deserialize<'de> for VariantInfo
impl<'de> Deserialize<'de> for VariantInfo
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 VariantInfo
impl RefUnwindSafe for VariantInfo
impl Send for VariantInfo
impl Sync for VariantInfo
impl Unpin for VariantInfo
impl UnwindSafe for VariantInfo
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