pub struct ScriptCleanupDeclaration {
pub script: String,
pub interpreter: String,
pub args: Vec<Template>,
pub timeout_ms: Option<u64>,
pub retries: Option<u32>,
pub retry_delay_ms: Option<u64>,
pub anywhere: Option<bool>,
pub handles: Option<Vec<String>>,
}Expand description
A declaration’s [cleanup]: what its script runs, and only the settings its schedr.toml
gives.
Fields§
§script: StringThe script, relative to the script root.
interpreter: StringThe interpreter’s name.
args: Vec<Template>Its arguments (templates).
timeout_ms: Option<u64>timeout, if given.
retries: Option<u32>retries, if given.
retry_delay_ms: Option<u64>retry_delay, if given.
anywhere: Option<bool>anywhere, if given.
handles: Option<Vec<String>>The job’s cleanup_handles, if given.
Trait Implementations§
Source§impl Clone for ScriptCleanupDeclaration
impl Clone for ScriptCleanupDeclaration
Source§fn clone(&self) -> ScriptCleanupDeclaration
fn clone(&self) -> ScriptCleanupDeclaration
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 ScriptCleanupDeclaration
impl Debug for ScriptCleanupDeclaration
Source§impl<'de> Deserialize<'de> for ScriptCleanupDeclaration
impl<'de> Deserialize<'de> for ScriptCleanupDeclaration
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 ScriptCleanupDeclaration
Source§impl JsonSchema for ScriptCleanupDeclaration
impl JsonSchema for ScriptCleanupDeclaration
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 ScriptCleanupDeclaration
impl PartialEq for ScriptCleanupDeclaration
Source§impl Serialize for ScriptCleanupDeclaration
impl Serialize for ScriptCleanupDeclaration
impl StructuralPartialEq for ScriptCleanupDeclaration
Auto Trait Implementations§
impl Freeze for ScriptCleanupDeclaration
impl RefUnwindSafe for ScriptCleanupDeclaration
impl Send for ScriptCleanupDeclaration
impl Sync for ScriptCleanupDeclaration
impl Unpin for ScriptCleanupDeclaration
impl UnsafeUnpin for ScriptCleanupDeclaration
impl UnwindSafe for ScriptCleanupDeclaration
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