pub struct BuildSpec {
pub ecosystem: String,
pub schema_version: u32,
pub data: Value,
}Expand description
Output of a build invocation. The JSON shape is
ecosystem-specific — Cargo.build-spec.json / package-lock.spec.json
/ etc. — but every adapter wraps it in this typed envelope so
substrate can read uniformly.
Fields§
§ecosystem: StringEcosystem name (mirrors Adapter::name()).
schema_version: u32Spec schema version. Bumped on breaking changes to the JSON shape; consumers can refuse-or-warn.
data: ValueEcosystem-shaped JSON payload.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BuildSpec
impl<'de> Deserialize<'de> for BuildSpec
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 BuildSpec
impl RefUnwindSafe for BuildSpec
impl Send for BuildSpec
impl Sync for BuildSpec
impl Unpin for BuildSpec
impl UnsafeUnpin for BuildSpec
impl UnwindSafe for BuildSpec
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