pub struct CustomTaskDefinition {
pub type_: Option<String>,
pub config: Value,
pub common: TaskDefinitionFields,
}Expand description
Represents a custom/extension task definition not covered by built-in types.
Matches Go SDK’s TaskRegistry pattern — allows users to define custom task types that are preserved during deserialization and can be handled by a CustomTaskHandler at runtime.
Fields§
§type_: Option<String>The task type name (e.g., “myCustomTask”)
config: ValueThe raw JSON configuration for the custom task
common: TaskDefinitionFieldsCommon task fields (if, input, output, export, timeout, then, metadata)
Trait Implementations§
Source§impl Clone for CustomTaskDefinition
impl Clone for CustomTaskDefinition
Source§fn clone(&self) -> CustomTaskDefinition
fn clone(&self) -> CustomTaskDefinition
Returns a duplicate of the value. Read more
1.0.0 · 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 CustomTaskDefinition
impl Debug for CustomTaskDefinition
Source§impl<'de> Deserialize<'de> for CustomTaskDefinition
impl<'de> Deserialize<'de> for CustomTaskDefinition
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 PartialEq for CustomTaskDefinition
impl PartialEq for CustomTaskDefinition
Source§impl Serialize for CustomTaskDefinition
impl Serialize for CustomTaskDefinition
impl StructuralPartialEq for CustomTaskDefinition
Auto Trait Implementations§
impl Freeze for CustomTaskDefinition
impl RefUnwindSafe for CustomTaskDefinition
impl Send for CustomTaskDefinition
impl Sync for CustomTaskDefinition
impl Unpin for CustomTaskDefinition
impl UnsafeUnpin for CustomTaskDefinition
impl UnwindSafe for CustomTaskDefinition
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