pub struct InputResources(pub Vec<InputResource>);
Expand description
List of artifacts that this target depends on.
input
should be an array of resources
.
Specifying a target’s input
enables the incremental build for this target.
This means that, at the time of executing the target, Žinoma will skip its build if its input resources (and output
resources, if any) have not changed since its last successful completion.
Example
targets:
npm_install:
input:
- paths: [package.json, package-lock.json]
build: npm install
In this example, running zinoma npm_install
once will execute npm install
.
Subsequent runs of zinoma npm_install
will return immediately — until the content of package.json
or package-lock.json
is modified.
Tuple Fields§
§0: Vec<InputResource>
Trait Implementations§
source§impl Debug for InputResources
impl Debug for InputResources
source§impl Default for InputResources
impl Default for InputResources
source§fn default() -> InputResources
fn default() -> InputResources
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InputResources
impl<'de> Deserialize<'de> for InputResources
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 InputResources
impl JsonSchema for InputResources
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 InputResources
impl Send for InputResources
impl Sync for InputResources
impl Unpin for InputResources
impl UnwindSafe for InputResources
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