pub enum ResourceRole {
Setup,
Cleanup {
setup: TaskId,
},
}Expand description
A command’s or a script’s part in a resource, for schedr task-ctx resource set|get.
Variants§
Setup
A CommandResource’s or ScriptResource’s setup: its output is the value it reports with resource set,
of the task’s output_type (none: it reports nothing), not its ProcessResult.
Cleanup
A resource’s cleanup_command or cleanup_script: it reads the setup’s value with
resource get.
Trait Implementations§
Source§impl Clone for ResourceRole
impl Clone for ResourceRole
Source§fn clone(&self) -> ResourceRole
fn clone(&self) -> ResourceRole
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 ResourceRole
impl Debug for ResourceRole
Source§impl<'de> Deserialize<'de> for ResourceRole
impl<'de> Deserialize<'de> for ResourceRole
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 ResourceRole
Source§impl JsonSchema for ResourceRole
impl JsonSchema for ResourceRole
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 ResourceRole
impl PartialEq for ResourceRole
Source§impl Serialize for ResourceRole
impl Serialize for ResourceRole
impl StructuralPartialEq for ResourceRole
Auto Trait Implementations§
impl Freeze for ResourceRole
impl RefUnwindSafe for ResourceRole
impl Send for ResourceRole
impl Sync for ResourceRole
impl Unpin for ResourceRole
impl UnsafeUnpin for ResourceRole
impl UnwindSafe for ResourceRole
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