pub trait ExternalIntegration: Send + Sync {
// Required methods
fn create_ticket<'life0, 'life1, 'async_trait>(
&'life0 self,
incident: &'life1 DriftIncident,
) -> Pin<Box<dyn Future<Output = Result<ExternalTicket, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn update_ticket_status<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ticket_id: &'life1 str,
status: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Trait for external integrations
Required Methods§
Sourcefn create_ticket<'life0, 'life1, 'async_trait>(
&'life0 self,
incident: &'life1 DriftIncident,
) -> Pin<Box<dyn Future<Output = Result<ExternalTicket, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_ticket<'life0, 'life1, 'async_trait>(
&'life0 self,
incident: &'life1 DriftIncident,
) -> Pin<Box<dyn Future<Output = Result<ExternalTicket, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a ticket from an incident
Sourcefn update_ticket_status<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ticket_id: &'life1 str,
status: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn update_ticket_status<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ticket_id: &'life1 str,
status: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Update ticket status