Skip to main content

ContractAccessor

Trait ContractAccessor 

Source
pub trait ContractAccessor: Send + Sync {
    // Required methods
    fn get_validation_result<'life0, 'life1, 'async_trait>(
        &'life0 self,
        workspace_id: Option<&'life1 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ContractValidationResult>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_enforcement_mode<'life0, 'life1, 'async_trait>(
        &'life0 self,
        workspace_id: Option<&'life1 str>,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_drift_history<'life0, 'life1, 'async_trait>(
        &'life0 self,
        workspace_id: Option<&'life1 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<DriftHistoryEntry>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_active_contracts<'life0, 'life1, 'async_trait>(
        &'life0 self,
        workspace_id: Option<&'life1 str>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Trait for accessing contract subsystem

Required Methods§

Source

fn get_validation_result<'life0, 'life1, 'async_trait>( &'life0 self, workspace_id: Option<&'life1 str>, ) -> Pin<Box<dyn Future<Output = Result<Option<ContractValidationResult>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get contract validation results

Source

fn get_enforcement_mode<'life0, 'life1, 'async_trait>( &'life0 self, workspace_id: Option<&'life1 str>, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get contract enforcement mode

Source

fn get_drift_history<'life0, 'life1, 'async_trait>( &'life0 self, workspace_id: Option<&'life1 str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<DriftHistoryEntry>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get drift history

Source

fn get_active_contracts<'life0, 'life1, 'async_trait>( &'life0 self, workspace_id: Option<&'life1 str>, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get active contract paths

Implementors§