pub struct IntegrationManager { /* private fields */ }Expand description
Integration manager for external systems.
Implementations§
Source§impl IntegrationManager
impl IntegrationManager
Sourcepub fn register(&mut self, name: String, config: IntegrationConfig)
pub fn register(&mut self, name: String, config: IntegrationConfig)
Register an integration.
Sourcepub fn get(&self, name: &str) -> Option<&IntegrationConfig>
pub fn get(&self, name: &str) -> Option<&IntegrationConfig>
Get an integration configuration.
Sourcepub fn remove(&mut self, name: &str) -> Option<IntegrationConfig>
pub fn remove(&mut self, name: &str) -> Option<IntegrationConfig>
Remove an integration.
Sourcepub fn export_workflow(
&self,
workflow: &WorkflowDefinition,
integration_type: IntegrationType,
) -> Result<String>
pub fn export_workflow( &self, workflow: &WorkflowDefinition, integration_type: IntegrationType, ) -> Result<String>
Export workflow to external format.
Sourcepub async fn trigger_webhook(
&self,
config: &WebhookConfig,
payload: &Value,
) -> Result<String>
pub async fn trigger_webhook( &self, config: &WebhookConfig, payload: &Value, ) -> Result<String>
Trigger workflow via webhook.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IntegrationManager
impl RefUnwindSafe for IntegrationManager
impl Send for IntegrationManager
impl Sync for IntegrationManager
impl Unpin for IntegrationManager
impl UnsafeUnpin for IntegrationManager
impl UnwindSafe for IntegrationManager
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