pub trait Integration: Send + Sync {
// Required methods
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
operation: &'life1 str,
params: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<Value, IntegrationError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn health_check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), IntegrationError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn integration_type(&self) -> IntegrationType;
}
Expand description
統合インターフェース
Required Methods§
Sourcefn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
operation: &'life1 str,
params: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<Value, IntegrationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
operation: &'life1 str,
params: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<Value, IntegrationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
統合を実行
Sourcefn health_check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), IntegrationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn health_check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), IntegrationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
統合のヘルスチェック
Sourcefn integration_type(&self) -> IntegrationType
fn integration_type(&self) -> IntegrationType
統合の種類を取得