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>,
pub registries: BTreeMap<String, String>,
pub fetch: FetchedBy,
pub max_pack_size: Option<u64>,
}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.
registries: BTreeMap<String, String>The registries packs come from, by scope (@kit, * for every other), each a URL ending in /; none when
the configuration names none.
fetch: FetchedByWho fetches from them: with FetchedBy::Host, the host serves registry/ as their proxy.
max_pack_size: Option<u64>In bytes: the largest pack the host takes from a registry; the registry rules’ default when absent.
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 Manifestwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<BundledPack>: Freeze,
PhantomData<Library>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
PhantomData<PackName>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
impl Move for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnsafeUnpin for Manifestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<BundledPack>: UnsafeUnpin,
PhantomData<Library>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
PhantomData<PackName>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for Manifestwhere
RawVecInner: UnwindSafe,
NonNull<u8>: UnwindSafe,
BTreeMap<FilePath, Integrity>: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
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