Trait mr_bundle::Manifest

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

    // Provided method
    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§

source

fn locations(&self) -> Vec<Location>

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

Provided Methods§

source

fn bundled_paths(&self) -> Vec<PathBuf>

Get only the Bundled locations

Object Safety§

This trait is not object safe.

Implementors§