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 Freeze for OutputResources
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