pub struct Manifest {
pub format: u32,
pub version: String,
pub tag: String,
pub files: Vec<ManifestFile>,
pub images: Vec<ManifestImage>,
pub upgrade: Option<Value>,
}Expand description
A release’s files, and the images it built. Older manifests have no images, and an app
older than the field ignores it.
Fields§
§format: u32§version: String§tag: String§files: Vec<ManifestFile>§images: Vec<ManifestImage>§upgrade: Option<Value>What the release says about upgrading to it: floor (the oldest version that may upgrade straight to it) and
shared_store_changed (whether it changes a shared store’s schema). Optional, under format 1, and kept as the
JSON the pipeline signed: a field that isn’t usable is read as absent by Manifest::signed_floor and
Manifest::shared_store_changed, never a reason to refuse the files (SPEC_UPGRADE_FLOOR_IN_SIGNED_MANIFEST).
An app older than the field ignores it.
Implementations§
Source§impl Manifest
impl Manifest
Sourcepub fn signed_floor(&self) -> SignedFloor
pub fn signed_floor(&self) -> SignedFloor
The floor this manifest signs for its release. It does not refuse anything by itself: the pipeline refuses to sign a bad floor, so an unusable one is a bug there, and the app falls back to the floor it would use without one.
upgrade.shared_store_changed, as the pipeline signed it.
Sourcepub fn file(&self, name: &str) -> Option<&ManifestFile>
pub fn file(&self, name: &str) -> Option<&ManifestFile>
The release file called name, if the manifest lists it.
Sourcepub fn image(&self, name: &str) -> Option<&ManifestImage>
pub fn image(&self, name: &str) -> Option<&ManifestImage>
The image the release lists as name, if it does.