Trait mr_bundle::Manifest[][src]

pub trait Manifest: Clone + Sized + PartialEq + Eq + Serialize + DeserializeOwned {
    fn locations(&self) -> Vec<Location>;

    fn bundled_paths(&self) -> Vec<PathBuf> { ... }
}
Expand description

A Manifest describes the resources in a Bundle and how to pack and unpack them.

Regardless of the format of your Manifest, it must contain a set of Locations describing where to find resources, and this trait must implement locations properly to match the data contained in the manifest.

You must also specify a relative path for the Manifest, and the extension for the bundle file, if you are using the “packing” feature.

Required methods

The list of Locations referenced in the manifest data. This must be correctly implemented to enable resource resolution.

Provided methods

Get only the Bundled locations

Implementors