pub struct OutputResources(pub Vec<OutputResource>);
Expand description
List of artifacts produced by this target.
It should be an array of resources
.
The incremental build takes in account the target output
.
Just like with input
, if any of the target output resources were altered since its previous successful execution, the target state will be invalidated and its build will be run again.
Example
targets:
npm_install:
input:
- paths: [package.json, package-lock.json]
output:
- paths: [node_modules]
build: npm install
In this example, running zinoma npm_install
will return immediately in case package.json
, package-lock.json
and node_modules
were not modified since the last completion of the target.
Running zinoma --clean npm_install
will start by deleting node_modules
, then will run npm install
.
Tuple Fields§
§0: Vec<OutputResource>
Trait Implementations§
source§impl Debug for OutputResources
impl Debug for OutputResources
source§impl Default for OutputResources
impl Default for OutputResources
source§fn default() -> OutputResources
fn default() -> OutputResources
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for OutputResources
impl<'de> Deserialize<'de> for OutputResources
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for OutputResources
impl JsonSchema for OutputResources
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreAuto Trait Implementations§
impl RefUnwindSafe for OutputResources
impl Send for OutputResources
impl Sync for OutputResources
impl Unpin for OutputResources
impl UnwindSafe for OutputResources
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more