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§
Sourcefn 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_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
Sourcefn 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_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