pub struct CompositionManifest {
pub version: String,
pub tool: String,
pub tool_version: String,
pub timestamp: String,
pub components: Vec<ComponentRef>,
pub integrator: Option<IntegratorInfo>,
pub metadata: HashMap<String, String>,
}Expand description
Composition manifest
Embedded in composed WASM as a custom section to track how components were composed together.
Fields§
§version: StringManifest format version
tool: StringComposition tool name (e.g., “wac”)
tool_version: StringComposition tool version
timestamp: StringTimestamp of composition (ISO 8601)
components: Vec<ComponentRef>Components that were composed
integrator: Option<IntegratorInfo>Integrator who signed the composed result
metadata: HashMap<String, String>Additional metadata
Implementations§
Source§impl CompositionManifest
impl CompositionManifest
Sourcepub fn new(tool: impl Into<String>, tool_version: impl Into<String>) -> Self
pub fn new(tool: impl Into<String>, tool_version: impl Into<String>) -> Self
Create a new composition manifest
Sourcepub fn add_component(&mut self, id: impl Into<String>, hash: impl Into<String>)
pub fn add_component(&mut self, id: impl Into<String>, hash: impl Into<String>)
Add a component reference
Sourcepub fn add_component_with_source(
&mut self,
id: impl Into<String>,
hash: impl Into<String>,
source: impl Into<String>,
)
pub fn add_component_with_source( &mut self, id: impl Into<String>, hash: impl Into<String>, source: impl Into<String>, )
Add component with source info
Sourcepub fn set_integrator(
&mut self,
identity: impl Into<String>,
signature_index: usize,
)
pub fn set_integrator( &mut self, identity: impl Into<String>, signature_index: usize, )
Set integrator information
Trait Implementations§
Source§impl Clone for CompositionManifest
impl Clone for CompositionManifest
Source§fn clone(&self) -> CompositionManifest
fn clone(&self) -> CompositionManifest
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 CompositionManifest
impl Debug for CompositionManifest
Source§impl<'de> Deserialize<'de> for CompositionManifest
impl<'de> Deserialize<'de> for CompositionManifest
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 CompositionManifest
impl RefUnwindSafe for CompositionManifest
impl Send for CompositionManifest
impl Sync for CompositionManifest
impl Unpin for CompositionManifest
impl UnwindSafe for CompositionManifest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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