pub struct Manifest {
pub format: u32,
pub frames: Frames,
pub source: Option<String>,
pub packs: Vec<BundledPack>,
pub libraries: Vec<Library>,
pub policy: Option<Value>,
pub ambient: Vec<PackName>,
}Expand description
A bundle’s manifest.
Fields§
§format: u32The format it is written in, FORMAT.
frames: FramesThe frames’ build.
source: Option<String>Where the frames’ policies say they are served, when that is a custom scheme (compmd://localhost/), whose
'self' WebKit reads as nothing in a sandboxed frame; none for http and https origins.
packs: Vec<BundledPack>The packs the bundle holds, under packs/<name>@<version>/.
libraries: Vec<Library>The libraries the frames offer component code, besides the runtimes.
policy: Option<Value>The processor’s policy the configuration made (policyOf), as JSON: what a host that processes in Rust gives
the processor.
ambient: Vec<PackName>The packs every document gets without importing them.
Implementations§
Source§impl Manifest
impl Manifest
Sourcepub fn parse(text: &str) -> Result<Self, ManifestError>
pub fn parse(text: &str) -> Result<Self, ManifestError>
The manifest in text.
§Errors
ManifestError when it isn’t a manifest, is of another format, or names a frames’ hash, a pack, a path or
an integrity that isn’t one.
Sourcepub fn scheme(&self) -> Option<&str>
pub fn scheme(&self) -> Option<&str>
The custom scheme the bundle was built for, from its source (compmd://localhost/ is compmd); none when
it was built for an http or https origin.
Sourcepub fn pack(&self, release: &ReleaseId) -> Option<&BundledPack>
pub fn pack(&self, release: &ReleaseId) -> Option<&BundledPack>
The pack at release, when the bundle holds it.