pub struct WorkflowIntegration {
pub triggers: HashMap<String, WorkflowTrigger>,
pub cron_triggers: HashMap<String, WorkflowCronTrigger>,
pub provenance: HashMap<String, Vec<WorkflowProvenance>>,
}Expand description
Workflow integration manager
Fields§
§triggers: HashMap<String, WorkflowTrigger>Triggers that create workflows
cron_triggers: HashMap<String, WorkflowCronTrigger>Cron triggers that create workflows
provenance: HashMap<String, Vec<WorkflowProvenance>>Provenance records
Implementations§
Source§impl WorkflowIntegration
impl WorkflowIntegration
Sourcepub fn register_trigger(
&mut self,
trigger_id: impl Into<String>,
trigger: WorkflowTrigger,
)
pub fn register_trigger( &mut self, trigger_id: impl Into<String>, trigger: WorkflowTrigger, )
Register a workflow trigger
Sourcepub fn register_cron_trigger(
&mut self,
trigger_id: impl Into<String>,
trigger: WorkflowCronTrigger,
)
pub fn register_cron_trigger( &mut self, trigger_id: impl Into<String>, trigger: WorkflowCronTrigger, )
Register a cron trigger
Sourcepub fn record_provenance(&mut self, provenance: WorkflowProvenance)
pub fn record_provenance(&mut self, provenance: WorkflowProvenance)
Record workflow provenance
Sourcepub fn get_provenance(
&self,
output_ref: &FlowRef,
) -> Option<Vec<WorkflowProvenance>>
pub fn get_provenance( &self, output_ref: &FlowRef, ) -> Option<Vec<WorkflowProvenance>>
Get provenance for an output reference
Trait Implementations§
Source§impl Clone for WorkflowIntegration
impl Clone for WorkflowIntegration
Source§impl Debug for WorkflowIntegration
impl Debug for WorkflowIntegration
Auto Trait Implementations§
impl Freeze for WorkflowIntegration
impl RefUnwindSafe for WorkflowIntegration
impl Send for WorkflowIntegration
impl Sync for WorkflowIntegration
impl Unpin for WorkflowIntegration
impl UnsafeUnpin for WorkflowIntegration
impl UnwindSafe for WorkflowIntegration
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