pub enum CleanupRun {
Python,
Command(CommandLine),
Script {
script: String,
interpreter: String,
args: Vec<Template>,
},
}Expand description
What a task’s cleanup runs: of the same kind as the task (see archive/PROJECT.md, Per-task cleanup).
Variants§
Python
The function given to @task(cleanup=...), found with the task’s when the runner
imports the DAG file.
Command(CommandLine)
A command, with the task’s environment.
Script
A script of the task’s script root ([jobs.<name>.cleanup]), with the task’s
environment and working directory.
Trait Implementations§
Source§impl Clone for CleanupRun
impl Clone for CleanupRun
Source§fn clone(&self) -> CleanupRun
fn clone(&self) -> CleanupRun
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CleanupRun
impl Debug for CleanupRun
Source§impl<'de> Deserialize<'de> for CleanupRun
impl<'de> Deserialize<'de> for CleanupRun
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
impl Eq for CleanupRun
Source§impl JsonSchema for CleanupRun
impl JsonSchema for CleanupRun
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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CleanupRun
impl PartialEq for CleanupRun
Source§impl Serialize for CleanupRun
impl Serialize for CleanupRun
impl StructuralPartialEq for CleanupRun
Auto Trait Implementations§
impl Freeze for CleanupRun
impl RefUnwindSafe for CleanupRun
impl Send for CleanupRun
impl Sync for CleanupRun
impl Unpin for CleanupRun
impl UnsafeUnpin for CleanupRun
impl UnwindSafe for CleanupRun
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