pub struct ReleaseArtifact {
pub version: SemanticVersion,
pub target: String,
pub checksum: String,
pub reproducible: bool,
}Expand description
Release artifact metadata.
Fields§
§version: SemanticVersionSemantic version of the release.
target: StringTarget platform (e.g., “linux-x86_64”, “darwin-aarch64”, “windows-x86_64”).
checksum: StringSHA256 checksum of the binary.
reproducible: boolWhether this is a reproducible build.
Implementations§
Source§impl ReleaseArtifact
impl ReleaseArtifact
Sourcepub fn new(
version: SemanticVersion,
target: String,
checksum: String,
reproducible: bool,
) -> Self
pub fn new( version: SemanticVersion, target: String, checksum: String, reproducible: bool, ) -> Self
Create a new release artifact.
Sourcepub fn verify_checksum(&self, actual_checksum: &str) -> bool
pub fn verify_checksum(&self, actual_checksum: &str) -> bool
Verify that artifact checksum matches expected value.
Trait Implementations§
Source§impl Clone for ReleaseArtifact
impl Clone for ReleaseArtifact
Source§fn clone(&self) -> ReleaseArtifact
fn clone(&self) -> ReleaseArtifact
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 ReleaseArtifact
impl Debug for ReleaseArtifact
Auto Trait Implementations§
impl Freeze for ReleaseArtifact
impl RefUnwindSafe for ReleaseArtifact
impl Send for ReleaseArtifact
impl Sync for ReleaseArtifact
impl Unpin for ReleaseArtifact
impl UnsafeUnpin for ReleaseArtifact
impl UnwindSafe for ReleaseArtifact
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