Integration

Trait Integration 

Source
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§

Source

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,

統合を実行

Source

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,

統合のヘルスチェック

Source

fn integration_type(&self) -> IntegrationType

統合の種類を取得

Implementors§