Struct mr_bundle::RawBundle

source ·
pub struct RawBundle<M> {
    pub manifest: M,
    pub resources: BTreeMap<PathBuf, ResourceBytes>,
}
Expand description

A manifest bundled together, optionally, with the Resources that it describes. The manifest may be of any format. This is useful for deserializing a bundle of an outdated format, so that it may be modified to fit the supported format.

Fields

manifest: M

The manifest describing the resources that compose this bundle.

resources: BTreeMap<PathBuf, ResourceBytes>

The full or partial resource data. Each entry must correspond to one of the Bundled Locations specified by the Manifest. Bundled Locations are always relative paths (relative to the root_dir).

Implementations

Load a Bundle into memory from a file

Trait Implementations

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more