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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Manifest
impl<'de> Deserialize<'de> for Manifest
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>,
impl StructuralPartialEq for Manifest
Auto Trait Implementations§
impl Forget for Manifest
impl Freeze for Manifest
impl Move for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnsafeUnpin for Manifest
impl UnwindSafe for Manifest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more