pub struct TaskNode {
pub id: String,
pub name: String,
pub description: Option<String>,
pub config: Value,
pub retry: RetryPolicy,
pub timeout_secs: Option<u64>,
pub resources: ResourceRequirements,
pub metadata: HashMap<String, String>,
}Expand description
A task node in the workflow DAG.
Fields§
§id: StringUnique task identifier.
name: StringTask name.
description: Option<String>Task description.
config: ValueTask configuration as JSON.
retry: RetryPolicyRetry policy.
timeout_secs: Option<u64>Timeout in seconds.
resources: ResourceRequirementsResource requirements.
metadata: HashMap<String, String>Custom metadata.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskNode
impl<'de> Deserialize<'de> for TaskNode
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 TaskNode
Auto Trait Implementations§
impl Freeze for TaskNode
impl RefUnwindSafe for TaskNode
impl Send for TaskNode
impl Sync for TaskNode
impl Unpin for TaskNode
impl UnsafeUnpin for TaskNode
impl UnwindSafe for TaskNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.