pub struct ArtifactProvenance {
pub source: String,
pub checksum_sha256: String,
pub built_at: String,
}Expand description
Identifies and verifies the .wasm artifact a crate::ComponentManifest describes.
A real ComponentValidator implementor is expected to check
checksum_sha256 against the actual component bytes before ever
loading them — this type only carries the claim, it does not verify it
itself (verification is an adapter concern, per ADR-001’s port/adapter
split).
Fields§
§source: StringWhere this artifact was built (a CI run id, a build system name, …).
checksum_sha256: StringLowercase hex SHA-256 of the component’s raw .wasm bytes.
built_at: StringISO 8601 timestamp of when the artifact was built.
Trait Implementations§
Source§impl Clone for ArtifactProvenance
impl Clone for ArtifactProvenance
Source§fn clone(&self) -> ArtifactProvenance
fn clone(&self) -> ArtifactProvenance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ArtifactProvenance
impl Debug for ArtifactProvenance
Source§impl<'de> Deserialize<'de> for ArtifactProvenance
impl<'de> Deserialize<'de> for ArtifactProvenance
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
impl Eq for ArtifactProvenance
Source§impl PartialEq for ArtifactProvenance
impl PartialEq for ArtifactProvenance
Source§impl Serialize for ArtifactProvenance
impl Serialize for ArtifactProvenance
impl StructuralPartialEq for ArtifactProvenance
Auto Trait Implementations§
impl Freeze for ArtifactProvenance
impl RefUnwindSafe for ArtifactProvenance
impl Send for ArtifactProvenance
impl Sync for ArtifactProvenance
impl Unpin for ArtifactProvenance
impl UnsafeUnpin for ArtifactProvenance
impl UnwindSafe for ArtifactProvenance
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