pub struct ReleaseManifest {
pub schema: &'static str,
pub version: Version,
pub payload_schema: u32,
pub provenance: Provenance,
pub descriptor_sha256: Option<Sha256>,
pub payload_sha256: Sha256,
pub artifacts: Vec<Artifact>,
}Expand description
What a bundle says about itself.
Fields§
§schema: &'static strThe machine schema of this object.
version: VersionThe release this bundle is.
payload_schema: u32The protocol version between the engine and this bundle.
provenance: ProvenanceWhere the release’s facts came from.
descriptor_sha256: Option<Sha256>The catalog descriptor used, where one was.
payload_sha256: Sha256A digest over every artifact’s path and digest, in path order.
artifacts: Vec<Artifact>Every file the bundle carries, in path order.
Implementations§
Source§impl ReleaseManifest
impl ReleaseManifest
Sourcepub fn digest_of(&self, path: &str) -> Option<&Sha256>
pub fn digest_of(&self, path: &str) -> Option<&Sha256>
The digest one logical path resolves to.
Sourcepub fn payload_digest(artifacts: &[Artifact]) -> Sha256
pub fn payload_digest(artifacts: &[Artifact]) -> Sha256
A digest over every artifact’s path and digest, in path order.
Identity over content rather than over the archive: two bundles that carry the same files are the same release to the planner, whichever transport served them.
Trait Implementations§
Source§impl Clone for ReleaseManifest
impl Clone for ReleaseManifest
Source§fn clone(&self) -> ReleaseManifest
fn clone(&self) -> ReleaseManifest
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 ReleaseManifest
impl Debug for ReleaseManifest
impl Eq for ReleaseManifest
Source§impl PartialEq for ReleaseManifest
impl PartialEq for ReleaseManifest
Source§impl Serialize for ReleaseManifest
impl Serialize for ReleaseManifest
impl StructuralPartialEq for ReleaseManifest
Auto Trait Implementations§
impl Freeze for ReleaseManifest
impl RefUnwindSafe for ReleaseManifest
impl Send for ReleaseManifest
impl Sync for ReleaseManifest
impl Unpin for ReleaseManifest
impl UnsafeUnpin for ReleaseManifest
impl UnwindSafe for ReleaseManifest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.