[][src]Struct memora::config::Manifest

pub struct Manifest {
    pub cache_root_dir: PathBuf,
    pub artifacts: Artifacts,
    pub disable_env_var: Option<String>,
}

A Memora build artifact cache manifest.

Fields

cache_root_dir: PathBuf

The root directory of the build artifact cache for a Git repository.

The path can be absolute or relative to the root of the Git repository.

artifacts: Artifacts

The Artifacts.

Each Artifact must have a name. This name is used as artifact argument to Memora subcommands, so it should be kept short. The name of an Artifact must be unique among all Artifacts in a Memora manifest.

See Artifacts for more details on Artifacts.

disable_env_var: Option<String>

Optional name of an environment variable that, if set, disables the cache.

Implementations

impl Manifest[src]

pub fn from_path(path: &Path) -> Result<Manifest>[src]

Load a Manifest from the file at path.

This function deserializes the Manifest file and adds the given path as input to each artifact.

Trait Implementations

impl Debug for Manifest[src]

impl<'de> Deserialize<'de> for Manifest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.