[][src]Struct memora::cache::Artifact

pub struct Artifact {
    pub inputs: Vec<PathBuf>,
    pub outputs: Vec<PathBuf>,
}

A build artifact.

Fields

inputs: Vec<PathBuf>

Paths of the Artifact inputs, relative to the root of a repository. Each path may be a file or a directory. Each input must be checked into the Git repository.

Inputs are the paths your build flow uses to generate the outputs of an artifact (e.g., source code, Makefiles, configuration files). The list of inputs must be complete; that is, when none of the inputs changes between two Git objects, the entire Artifact is considered identical for those two objects. Any one input may be used in more than one Artifact.

If the Artifact is part of a Manifest file loaded with the from_path function, the Manifest file is an implicit input dependency of the Artifact.

If the Artifact is a Pattern Artifact, each path may contain up to one %.

outputs: Vec<PathBuf>

Paths of the Artifact outputs, relative to the root of a repository. Each path may be a file or a directory.

Outputs are the paths your build flow creates or modifies when it generates an artifact (e.g., executables, shared object files). The list of outputs must contain all files required to "use" the artifact but can (and in most cases should) omit intermediate build products.

Trait Implementations

impl Clone for Artifact[src]

impl Debug for Artifact[src]

impl<'de> Deserialize<'de> for Artifact[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.